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: Please help with no-gap autoincrement field

Re: Please help with no-gap autoincrement field

From: DA Morgan <damorgan_at_psoug.org>
Date: Tue, 13 Jun 2006 10:14:23 -0700
Message-ID: <1150218867.411572@bubbleator.drizzle.com>


g_chime_at_yahoo.com wrote:
> I am converting from MySQL to ORACLE and having problems with an
> autoincrement field.
> MySQL has a built-in autoincrement feature ORACLE doesn't seem to.

Oracle does it just is implemented in a different manner.

Go to Morgan's Library at www.psoug.org
Click on Sequences.

You can implement the numbering as part of your insert statement or using a BEFORE INSERT trigger.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Tue Jun 13 2006 - 12:14:23 CDT

Original text of this message

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