I think you have a mistake in your code
set @i = 1 should be
select @i = 1
Anyway this is the correct code as far as I can see
declare
@i integer
select @i = 1
while @i <= 5000
begin
insert into T00 (RECID) values (@i)
insert into T50 (RECID) values (@i)
select @i = @i + 1
end
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.