Subject | Re: [firebird-support] behavior of select into in a result with > 1 record |
---|---|
Author | Helen Borrie |
Post date | 2003-09-10T13:16:46Z |
At 02:32 PM 10/09/2003 +0200, you wrote:
<variables> DO....SUSPEND and submit your request using a SELECT ... FROM
procedurename (parameter_list) statement instead of EXECUTE PROCEDURE
procedurename (parameter_list).
"Selectable stored procedures".
Language Reference, IB 6 beta docs for more information; also papers from
the ibphoenix website.
heLen
>Hi,Martijn wrote:
>
> > "select anythink from table into :anythink"
> > what happen if my select return more than one records ?
> > The first will be used and assigned to my variable?
>You will receive an error - something along the lines ofIf you *want* to get multiple rows back, use a FOR SELECT...INTO
>"Multiple rows returned in a singleton select".
<variables> DO....SUSPEND and submit your request using a SELECT ... FROM
procedurename (parameter_list) statement instead of EXECUTE PROCEDURE
procedurename (parameter_list).
"Selectable stored procedures".
Language Reference, IB 6 beta docs for more information; also papers from
the ibphoenix website.
heLen