Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Help:Pl/SQL Pass variable for sequence into SQL Select
Create a database function and 'register' all your sequences with it.
(Create a script for creating Oracle sequences which also maintains your
new database function)
To retrieve the sequence you want issue a select which looks something like
this -
select function_next_number(sequence_name) from dual;
PEMM
morris_gary_at_bah.com wrote in article <868469235.20569_at_dejanews.com>...
>I'm somewhat of a beginner trying to write a fairly simple sequence
>generator in PL/SQL. The user selects a client name and based on that
>client name it returns the next sequence for that client.
Received on Fri Jul 11 1997 - 00:00:00 CDT
![]() |
![]() |