how to give for loop in sql 2005
i need to include two expressions in select query ,but i got error...and result of select query should store into a variale...give example please...
after 12 variables are there to keep store select output..and before insert i want to use for loop...give example
Select and insert
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
AnkurRank #1,348 · 1.2K pointsPosted Dec 1, 2013, 10:46 PM EST
Sorry but your query is not clear, could you please elaborate why do you need for loop.
Are you modifying values from SELECT and before INSERT?
have you gone through "Cursors" that are designed for this type of purpose.
Thanks...