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

Home -> Community -> Usenet -> c.d.o.server -> Re: about sequence in oracle

Re: about sequence in oracle

From: adil <aadil_at_loveable.com>
Date: 15 Aug 2001 23:01:59 -0700
Message-ID: <2f4ab398.0108152201.36316e9c@posting.google.com>


Hi There
 Hope this will help

Altering a sequence starting from 0 with out droping it.

  1. Select seq.next val from dual check wht is the curr seq value say it is 10
  2. Alter sequence <seqname> increment by -10 minvalue 0;
  3. Select seqname.nextval from dual; output will be 0
  4. Alter sequence seqname increment by 1;

Regards
Adil Received on Thu Aug 16 2001 - 01:01:59 CDT

Original text of this message

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