Subject | Re: [firebird-support] Views and parameters |
---|---|
Author | German Pablo Gentile |
Post date | 2004-10-26T13:50:34Z |
Tim wrote:
TIA
German.
> /* Stored procedures */But i need to return a set of records, not a single record.
>
>CREATE PROCEDURE "GETFIELDS"
>(
> RECORDNUMBER INTEGER
>)
>RETURNS
>(
> FIELDA VARCHAR(128) CHARACTER SET ASCII,
> FIELDB INTEGER
>)
>AS
>
>BEGIN
> FOR SELECT FIELDA, FIELDB FROM TABLE1
> WHERE
> RECORDNO = :RECORDNUMBER
> INTO
> :FIELDA :FIELDB
> DO
> BEGIN
> SUSPEND;
> END
>END
>
>
TIA
German.