Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Procedure

Author  Topic 

vedjha
Posting Yak Master

228 Posts

Posted - 2009-10-31 : 13:20:46

How to Print 'a' 5 times

===============
declare @i int
set @i=1
while(@i<=5)
begin
print 'a'
@i++
end


Ved Prakash Jha

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2009-10-31 : 13:27:11
declare @i int
set @i=1
while(@i<=5)
begin
print 'a'
@i++
set @i = @i + 1
end
Go to Top of Page

vedjha
Posting Yak Master

228 Posts

Posted - 2009-10-31 : 13:44:32
thank you:


Ved Prakash Jha
Go to Top of Page
   

- Advertisement -