Subject | Re: [firebird-support] Stored Procedure vs Inline Query Results |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2005-02-28T07:08:40Z |
On 28 Feb 2005 at 6:34, rfrieband wrote:
Modify it a bit:
FOR
SY, Dimitry Sibiryakov.
>procedure returns 1 record with null values in each field. I want toNo. This is how your stored procedure is written.
>test if the query didn't return any records, but with the stored
>procedure I always get a record returned even if there are no matches.
>Is this how stored procedures work in Firebird?
Modify it a bit:
FOR
>SELECT "USER".USERID, BKDN.USERLEVELDO
>FROM BKDN, "USER"
>WHERE BKDN.USERNAME =:UNAME
>AND BKDN.PW =:PW
>AND "USER".USERID = BKDN.USERID
>AND BKDN.USERACTIVE = 'Y'
>INTO :UID, :ULEVEL
> SUSPEND;--
SY, Dimitry Sibiryakov.