Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Loop In sql

$
0
0

Hello all

I want to make a loop in sql without use cursor is it possible?

i want to write a query like this .

@test=select name from table1

if @test<>"Muzahid"

begin

end

some query

else

some query

in table1 i have 10 name i need to check 10 name in a loop.

Thanks for help.

Muzahid


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>