Subject | Re: Firebird 2.0 Release Notes: EXECUTE BLOCK, RETURNING CLAUSE, COMPOUND INDEX |
---|---|
Author | crizoo4712 |
Post date | 2007-07-03T08:13:37Z |
--- In firebird-support@yahoogroups.com, Dmitry Yemanov <dimitr@...>
wrote:
What would be the syntax and where can I receive the returned values?
Regards, Christoph
wrote:
>YES, I CAN! But what do I have to do here?
> crizoo4712 wrote:
> >
> > In order to be able to return multiple rows, I changed it to:
> > EXECUTE BLOCK returns (out integer)
> > AS
> > BEGIN
> > for select f1 from T2 into out do
> > suspend;
> > END
> > This causes the error "-104 - Token unknown line 5, column 1 ;".
> > Whats up here?
>
> Can you create a stored procedure with the same body?
>DSQL
> > 2. The RETURNING CLAUSE for inserts is announced as available in
> > and PSQL. The usage in PSQL is no problem.in
> > In contradiction to the announced DSQL-Availability it is written
> > the Notes, that the INTO part is allowed in PSQL only andrejected in
> > DSQL (everybody expects this..).in
>
> What does everybody expect? The INTO clause is not needed for DSQL
> the same way as you just do SELECT instead of SELECT INTO.But when it's availale in DSQL, where are the returned values placed?
>
> > Now..is it available in DSQL or not?
>
> Yes.
What would be the syntax and where can I receive the returned values?
Regards, Christoph