View Single Post

  #2 (permalink)  
Old 04-04-2008, 10:35 AM
grlewycky's Avatar
grlewycky grlewycky is offline
Junior Member
 
Join Date: Jan 2007
Posts: 9
grlewycky is on a distinguished road
After your CURSOR definitions and before your BEGIN

add something like this:


inv_record C_INVOICE%ROWTYPE;


CURSOR c_machine IS
Select name from v$database;
----
/*--------------------------------*/
/* */
/* */

machine_record c_machine%ROWTYPE;

/* */
/* */
/*--------------------------------*/
BEGIN

OPEN c_machine;
LOOP
FETCH c_machine INTO machine_record;
out_machine := machine_record.NAME;
EXIT WHEN c_machine%NOTFOUND;
end loop;
CLOSE c_machine;
__________________
from the mind of George Lewycky
grlewycky@yahoo.com | http://georgenet.net/oracle
Reply With Quote