Subject | SELECT FIRST 1 .... problem |
---|---|
Author | Sudheer Palaparambil |
Post date | 2005-10-30T07:57:40Z |
Hello,
The following SQL Statement returns NULL from the sql prompt
and returns 0 inside the Stored Procedure when the WHERE
condition is not met. Is it an expected behaviour ?
SELECT FIRST 1 PD.product_id
FROM purchase_det PD
WHERE ( PD.company_id = :dCID ) AND ( PD.isbn = :sString )
INTO :liPrID;
Thank you.
Sudheer P
The following SQL Statement returns NULL from the sql prompt
and returns 0 inside the Stored Procedure when the WHERE
condition is not met. Is it an expected behaviour ?
SELECT FIRST 1 PD.product_id
FROM purchase_det PD
WHERE ( PD.company_id = :dCID ) AND ( PD.isbn = :sString )
INTO :liPrID;
Thank you.
Sudheer P