Dear Friends ,
I need to know how to use 'Loop' Keyword in sql satement
Plz send a sample query ..Can we replace my while loop with 'Loop'
keyword
for example:
declare @var int
set @var=0
while (@var!=5)
begin
Print('Loop Executed ')
set @var=@var+1
end
how above statement can be replaced by LOOP keyword with FOR in SQL SATEMENTS...
thanks!!