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 -> Re: ORACLE-SQL : Sequence Problem (Need SQL GURUS)

Re: ORACLE-SQL : Sequence Problem (Need SQL GURUS)

From: Mohamad SALEH <msaleh_at_orsys.fr>
Date: Thu, 10 Sep 1998 11:22:10 +0200
Message-ID: <35F79A42.F1A7654B@orsys.fr>

azhan98_at_tm.net.my wrote:

> Please advice me on this problem......
>
> I create a sequence say s_mysequence
> The sequnce will increment its value by 1.
> From my understanding, sequnce will alway increase its value when called.
> (Or can we reset the value?).
>
> Here's the problem:
> How can I write the code (SQL or PL/SQL or SQL*PLUS)that will increase the
> sequence value until it match the value of other parameter value and reset
> its value back to 1.
>
> I have to do this since I want my sequnce to be dynamic.
> [snip]

Have a look at the statement ALTER SEQUENCE Received on Thu Sep 10 1998 - 04:22:10 CDT

Original text of this message

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