Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.oracle -> SELECT INTO when there is no data.

SELECT INTO when there is no data.

From: moshe <Moshe_t_at_yahoo.com>
Date: 15 Mar 2004 23:00:45 -0800
Message-ID: <616be6f6.0403152300.65ecca17@posting.google.com>

Hi,

    I'm using the SELECT INTO syntax in my SP. Sometimes, the SELECT returns no records, and the SP raise exception for that reason.

My solution : Firsly use SELECT COUNT(*) INTO NumOfRecords and then check
the NumOfRecords, If it's greater/equal to 1 continue to the next SELECT INTO. I believe that there's another better solution for that situation. Any suggestion will be welcome.

With thanks,

   Moshe. Received on Tue Mar 16 2004 - 01:00:45 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US