Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Functions

Functions

From: S. van Hoof <info_at_hoof.nl>
Date: Tue, 29 Feb 2000 11:40:49 +0100
Message-ID: <89g7o3$jka$1@news1.xs4all.nl>


My question is:
In calling a function, do I always have to use the dual table? Example:
"select <funtion> into <variable> from dual" ?

Example:
Why can't I call a sequence.nextval into a variable via:

...

ret=s.nextval
..

This works:
......

ret number;
begin

   select s.nextval into ret from dual
......

Thanks
Stephan Received on Tue Feb 29 2000 - 04:40:49 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US