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
Loading
AnkurPosted Dec 2, 2013, 3:46 AM
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...