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

Home -> Community -> Usenet -> c.d.o.server -> Simple question ...

Simple question ...

From: Ernest Morariu <ernest_at_gesora.com>
Date: Fri, 6 Aug 2004 15:13:24 +0200
Message-ID: <cf005n$6os$1@balena.cs.interbusiness.it>


Hi All!

The following command :

SELECT myField INTO myVariable FROM myTable WHERE myCondition;

 generates an error if there is no record satisfying the condition "myCondition".

I would like to be able to do something like:

SELECT myField INTO myVariable FROM myTable WHERE myCondition ; if myVariable is null then

Is there any way to do this without having to handle the exceptions ?

I read somewhere that it not advisable to rely the code of the procedure on exceptions for getting common results.

ernest Received on Fri Aug 06 2004 - 08:13:24 CDT

Original text of this message

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