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

Home -> Community -> Usenet -> c.d.o.tools -> Re: a tricky sequence object question

Re: a tricky sequence object question

From: António Manuel Correia <manel.marias_at_netc.pt>
Date: Thu, 7 Dec 2000 00:04:28 -0000
Message-ID: <3a2ed33a$1@212.18.160.197>

lock the table
find out the max value
dbms_sql.execute('create sequence ....);

not sure about the function within the packae but you can look for it manuals

<faheemrao_at_my-deja.com> wrote in message news:90m7vg$rm2$1_at_nnrp1.deja.com...
> Hi all
>
>
> Any body know that how to create the sequence object in oracle in the
> way I want ???
>
> I want a sequence object whose start with clauses is generic , I mean
> that I can select start with clause from a query ,
> following example could give you more better idea
>
>
> create sequence ss
> increment by 1
> start with (select max(id) from table_name)
>
>
> That is all I want.
>
>
> any help would be appreciated :)))
>
>
>
> Faheem Rao
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Wed Dec 06 2000 - 18:04:28 CST

Original text of this message

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