Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> How to return variable
Greetings,
I'm using VB and ADO to retrieve a calculated varible from Oracle. The SQL statement is as follow
Declare
v_NextSequence Number;
Begin
I tried "Return v_NextSequence;" but got an error indicating that an expression can't be used with Return. I didn't compile this routine as an Oracle stored procedure because one of the requirements is that all SQL must be sent through VB/ADO this way.
Please help. Many thanks in advance.
Andrew.
vanhao_at_yahoo.com
Received on Tue Oct 13 1998 - 01:40:18 CDT