Subject | Re: Newbie : Stored procedure to return multiple rows |
---|---|
Author | Alexander V.Nevsky |
Post date | 2004-03-01T16:11:26Z |
--- In firebird-support@yahoogroups.com, "NextStepSolutions"
<nextstepsolutions@y...> wrote:
of "Select * From Procedure getnames" ;)
Best regards,
Alexander.
<nextstepsolutions@y...> wrote:
> SET TERM !!;VARCHAR(30)) AS
> CREATE PROCEDURE getnames
> RETURNS (title VARCHAR(10), forename VARCHAR(30), surname
> BEGINNo, it was Andy, who performed "Execute Procedure getnames" instead
> FOR SELECT title, forename, surname
> FROM name
> INTO :title, :forename, :surname
> DO BEGIN
> SUSPEND;
> END
> END !!
> SET TERM ;!!
>
>
> This is recognised as a valid stored procedure by iSql, but only
> returns one row.
> I was hoping to get all rows from the table - is it SUSPEND that is
> causing it to stop after just one row?
of "Select * From Procedure getnames" ;)
Best regards,
Alexander.