I have a block including lots of records sorted by date column, assume that I have the detail of a specified record, how could I locate and let the cursor stay in that record? Which built-in can I use?
first_record;
<<SEARCH>>
if ...some mandatory field... is null then --Past last row
first_record; --No match
else
if ...record not a match... then
next_record;
goto SEARCH;
end if;
end if;
Beware of false knowledge; it is more dangerous than ignorance. ~George Bernard Shaw
Consultant Developer/Analyst Oracle, Forms, Reports & PL/SQL (Windows)
Author and Sole Proprietor of: Emu Products Plus
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.