![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
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 -- |
#12
| |||
| |||
|
|
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 -- |
#13
| |||
| |||
|
|
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 -- |
#14
| |||
| |||
|
|
Prady The fire 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 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 damor...@x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Groupwww.psoug.org |
#15
| |||
| |||
|
|
Prady The fire 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 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 damor...@x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Groupwww.psoug.org |
#16
| |||
| |||
|
|
Prady The fire 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 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 damor...@x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Groupwww.psoug.org |
#17
| |||
| |||
|
|
Prady The fire 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 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 damor...@x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Groupwww.psoug.org |
#18
| |||
| |||
|
|
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 |
#19
| |||
| |||
|
|
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 |
#20
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |