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

Home -> Community -> Usenet -> c.d.o.misc -> select with default

select with default

From: Igor Sereda <sereda_at_spb.runnet.ru>
Date: Thu, 16 Apr 1998 11:09:26 -0400
Message-ID: <35361F26.EB97136@spb.runnet.ru>


Hello,

i wonder if there is a way to make a pl/sql code like this:

	begin
		select FIELD into VAR from TABLE where CONDITION;
	exception
		when NO_DATA_FOUND then VAR := DEFAULT;
	end;

without exception handling, just in one line, straight and simple. I found that such sentenses arise very often and i suppose there should be a way to simplify this.

Thank you,
Igor

--
Igor Sereda,
ITC, Russia Received on Thu Apr 16 1998 - 10:09:26 CDT

Original text of this message

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