Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: a tricky sequence object question
how about using sqlplus to generate the file - untried example
spool c.sql
select
' create sequence ss increment by 1 start with '||max(id)||';'
from table_name;
spool off
@c
-- Niall Litchfield Oracle DBA Audit Commission UK <faheemrao_at_my-deja.com> wrote in message news:90m7vg$rm2$1_at_nnrp1.deja.com...Received on Thu Dec 07 2000 - 06:38:13 CST
> 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.
![]() |
![]() |