Subject | Re: [firebird-support] For loops in a stored procedure |
---|---|
Author | Helen Borrie |
Post date | 2006-01-20T14:04:15Z |
At 08:53 AM 20/01/2006 -0500, you wrote:
create procedure humphrey (termval integer, ....)
..
declare X integer = 0;
..
begin
while (X < termval) do
begin
insert into...
X = X + 1;
end
end
./hb
>IS there a mechanism to do a for loop (not with a select) inside a storedSomething like....but not a FOR loop. Use a WHILE loop:
>procedure?
>
>Something like:
>
>For X = 1 to Term
>Do Begin
> Insert Into ...
>End
create procedure humphrey (termval integer, ....)
..
declare X integer = 0;
..
begin
while (X < termval) do
begin
insert into...
X = X + 1;
end
end
./hb