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 -> Re: Select into problem

Re: Select into problem

From: DA Morgan <damorgan_at_psoug.org>
Date: Tue, 12 Dec 2006 14:26:58 -0800
Message-ID: <1165962419.118078@bubbleator.drizzle.com>


Jun wrote:
> Hi Guys,
>
> I have a question about PL/SQL code
>
> I have the following select into statement :
>
> SELECT STUD_AGE INTO v_cHP_MaxAge FROM STUDENT WHERE GDU =
> '015346001002';
>
> I know It has no value returned but it give a no_data_found error.
> How do I escape that error without using exception?
> Is there any way to force the query return some value instead of an
> error?
>
> Thanks in advance

Why would you want to circumvent the normal exception handling mechanism.

If nothing is returned what do you want to result to be? That v_cHP is NULL or has some other value? Do you want processing to just continue?

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Tue Dec 12 2006 - 16:26:58 CST

Original text of this message

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