dbTalk Databases Forums  

Regarding "how can i trap the empty explicit cursor value"

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Regarding "how can i trap the empty explicit cursor value" in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Prady The fire
 
Posts: n/a

Default Regarding "how can i trap the empty explicit cursor value" - 11-18-2008 , 04:25 AM






Hi,
i write a explicit cursor but for the some condition data not
available for that cursor.
at that time how can i trap the NULL value for the further processpls
help me
Thanks

Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Regarding "how can i trap the empty explicit cursor value" - 11-18-2008 , 09:44 AM






On Nov 18, 4:25*am, Prady The fire <er.pradau... (AT) gmail (DOT) com> wrote:
Quote:
Hi,
i write a explicit cursor but for the some condition data not
available for that cursor.
at that time how can i trap the NULL value for the further processpls
help me
Thanks
In your PL/SQL manual look up cursor attributes. There are several
that can be used to obtain information about the status of a cursor
(implicit and explicit).

Quote:
OPEN c1;
LOOP
FETCH c1 INTO my_ename, my_salary;
IF c1%FOUND THEN -- fetch succeeded
<snip>
<<

HTH -- Mark D Powell --


Reply With Quote
  #3  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Regarding "how can i trap the empty explicit cursor value" - 11-18-2008 , 09:44 AM



On Nov 18, 4:25*am, Prady The fire <er.pradau... (AT) gmail (DOT) com> wrote:
Quote:
Hi,
i write a explicit cursor but for the some condition data not
available for that cursor.
at that time how can i trap the NULL value for the further processpls
help me
Thanks
In your PL/SQL manual look up cursor attributes. There are several
that can be used to obtain information about the status of a cursor
(implicit and explicit).

Quote:
OPEN c1;
LOOP
FETCH c1 INTO my_ename, my_salary;
IF c1%FOUND THEN -- fetch succeeded
<snip>
<<

HTH -- Mark D Powell --


Reply With Quote
  #4  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Regarding "how can i trap the empty explicit cursor value" - 11-18-2008 , 09:44 AM



On Nov 18, 4:25*am, Prady The fire <er.pradau... (AT) gmail (DOT) com> wrote:
Quote:
Hi,
i write a explicit cursor but for the some condition data not
available for that cursor.
at that time how can i trap the NULL value for the further processpls
help me
Thanks
In your PL/SQL manual look up cursor attributes. There are several
that can be used to obtain information about the status of a cursor
(implicit and explicit).

Quote:
OPEN c1;
LOOP
FETCH c1 INTO my_ename, my_salary;
IF c1%FOUND THEN -- fetch succeeded
<snip>
<<

HTH -- Mark D Powell --


Reply With Quote
  #5  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Regarding "how can i trap the empty explicit cursor value" - 11-18-2008 , 09:44 AM



On Nov 18, 4:25*am, Prady The fire <er.pradau... (AT) gmail (DOT) com> wrote:
Quote:
Hi,
i write a explicit cursor but for the some condition data not
available for that cursor.
at that time how can i trap the NULL value for the further processpls
help me
Thanks
In your PL/SQL manual look up cursor attributes. There are several
that can be used to obtain information about the status of a cursor
(implicit and explicit).

Quote:
OPEN c1;
LOOP
FETCH c1 INTO my_ename, my_salary;
IF c1%FOUND THEN -- fetch succeeded
<snip>
<<

HTH -- Mark D Powell --


Reply With Quote
  #6  
Old   
DA Morgan
 
Posts: n/a

Default Re: Regarding "how can i trap the empty explicit cursor value" - 11-19-2008 , 11:59 AM



Prady The fire wrote:
Quote:
Hi,
i write a explicit cursor but for the some condition data not
available for that cursor.
at that time how can i trap the NULL value for the further processpls
help me
Thanks
If what you are writing is a CURSOR LOOP or CURSOR FOR LOOP you
are writing an obsolete syntax and should move up to using arrays.

You can find examples here:
http://www.psoug.org/reference/array_processing.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #7  
Old   
DA Morgan
 
Posts: n/a

Default Re: Regarding "how can i trap the empty explicit cursor value" - 11-19-2008 , 11:59 AM



Prady The fire wrote:
Quote:
Hi,
i write a explicit cursor but for the some condition data not
available for that cursor.
at that time how can i trap the NULL value for the further processpls
help me
Thanks
If what you are writing is a CURSOR LOOP or CURSOR FOR LOOP you
are writing an obsolete syntax and should move up to using arrays.

You can find examples here:
http://www.psoug.org/reference/array_processing.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #8  
Old   
DA Morgan
 
Posts: n/a

Default Re: Regarding "how can i trap the empty explicit cursor value" - 11-19-2008 , 11:59 AM



Prady The fire wrote:
Quote:
Hi,
i write a explicit cursor but for the some condition data not
available for that cursor.
at that time how can i trap the NULL value for the further processpls
help me
Thanks
If what you are writing is a CURSOR LOOP or CURSOR FOR LOOP you
are writing an obsolete syntax and should move up to using arrays.

You can find examples here:
http://www.psoug.org/reference/array_processing.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #9  
Old   
DA Morgan
 
Posts: n/a

Default Re: Regarding "how can i trap the empty explicit cursor value" - 11-19-2008 , 11:59 AM



Prady The fire wrote:
Quote:
Hi,
i write a explicit cursor but for the some condition data not
available for that cursor.
at that time how can i trap the NULL value for the further processpls
help me
Thanks
If what you are writing is a CURSOR LOOP or CURSOR FOR LOOP you
are writing an obsolete syntax and should move up to using arrays.

You can find examples here:
http://www.psoug.org/reference/array_processing.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #10  
Old   
Prady The fire
 
Posts: n/a

Default Re: Regarding "how can i trap the empty explicit cursor value" - 11-21-2008 , 12:29 PM



On Nov 18, 7:44 pm, Mark D Powell <Mark.Pow... (AT) eds (DOT) com> wrote:
Quote:
On Nov 18, 4:25 am, Prady The fire <er.pradau... (AT) gmail (DOT) com> wrote:

Hi,
i write a explicit cursor but for the some condition data not
available for that cursor.
at that time how can i trap the NULL value for the further processpls
help me
Thanks

In your PL/SQL manual look up cursor attributes. There are several
that can be used to obtain information about the status of a cursor
(implicit and explicit).



OPEN c1;
LOOP
FETCH c1 INTO my_ename, my_salary;
IF c1%FOUND THEN -- fetch succeeded
snip


HTH -- Mark D Powell --
Thank u to helping me.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.