help with procedure
From: ben <benc_at_email.arizona.edu>
Date: 3 May 2003 00:15:53 -0700
Message-ID: <71915a6e.0305022315.5bded2ca_at_posting.google.com>
END
END As you can see, I can't just simply return a REF CURSOR via a function, because I am basically creating rows in the second while loop.
Date: 3 May 2003 00:15:53 -0700
Message-ID: <71915a6e.0305022315.5bded2ca_at_posting.google.com>
tempname := cursor.name
temptime := cursor.time
WHILE curdate < target date
mydate = curdate mytime = temptime myname = tempname increment date
END
END As you can see, I can't just simply return a REF CURSOR via a function, because I am basically creating rows in the second while loop.
so if the table looked like this:
name time
bob 3:00 jill 4:00
The result from the procedure might look like this:
date name time
4/27 bob 3:00 5/27 bob 3:00 4/31 jill 4:00 5/02 jill 4:00 5/04 jill 4:00
I am also having a problem with displaying the output values so that I can check them. In sqlplus, how can I print out the result of a procedure that returns multiple parameters of type table? I confess, I can't even get something like this to print out:
prodecure mysp (myout OUT NUMBER)
AS
BEGIN
myout := 5;
END;
/
BEGIN
output.putline(mysp);
END
/
Thank you for any help,
Ben Received on Sat May 03 2003 - 09:15:53 CEST