Null Record Problem of Cursor [message #200249] |
Mon, 30 October 2006 00:50 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
jadoo83
Messages: 26 Registered: October 2006 Location: Mumbai
|
Junior Member |
|
|
Hi,
I am fetching 24 records from database into cursor which finally add null record at the end of cursor;so, in all 25 records are there and i have to display only 24 records and i am displaying it into text item which displays 24 records. But whenever i m scrolling into that text item till the last record that null record comes into existence and all other records get shifted to one row up.
So, is there any way to hide this null record evenif i scroll into text item?
My code for diplaying record is:
for x into c
loop
:text_item:=c.value;
next_record;
end loop;
delete_record;
|
|
|
|
|
|
|
Re: Null Record Problem of Cursor [message #200451 is a reply to message #200419] |
Mon, 30 October 2006 23:56 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
jadoo83
Messages: 26 Registered: October 2006 Location: Mumbai
|
Junior Member |
|
|
As far as my knowledge is concerned, in CURSORS an empty record is added automatically which indicates the End of Record for that cursor.
So, its not manually added empty record.
|
|
|
Re: Null Record Problem of Cursor [message #200453 is a reply to message #200451] |
Tue, 31 October 2006 00:11 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/67467.jpg) |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Jitendra,
You said | in all 25 records are there
|
Either you have 24 records and an end-of-cursor or you have 25 records - you can't have both.
I suggest that you stop thinking that there is an empty record at the end of the cursor and start thinking that there is an end-of-cursor marker which can be picked up by the various condition handlers.
David
Upd: Spelling.
[Updated on: Tue, 31 October 2006 17:20] Report message to a moderator
|
|
|
|