Skip to content
Advertisement

Tag: control-flow

How to implement a do-while loop in tsql

I’m trying to figure how to implement this in TSQL The only iterative control flow sentence provided by Transact-SQL is while (condition) sentences that first evaluates the condition and if that condition is true then execute the sentence. I’m thinking in a scenario like execute a UPDATE statement over a table until some condition triggered y the last UPDATE executed

Advertisement