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: Autoincrement in Oracle 8.1.7

Re: Autoincrement in Oracle 8.1.7

From: Daniel Morgan <dmorgan_at_exesolutions.com>
Date: Fri, 26 Apr 2002 19:50:48 GMT
Message-ID: <3CC9AF97.BD0028E@exesolutions.com>


Dave wrote:

> Hello.
>
> I am fairly new to Oracle, can anyone tell me if there is a way to
> create a column (primary key) that the database itself will fill in
> automatically with a sequential number ?
>
> Thanks in advance

Create a sequence. Then use it in a before-insert trigger.

Oracle, and I am so grateful, does not have autoinsert.

Daniel Morgan Received on Fri Apr 26 2002 - 14:50:48 CDT

Original text of this message

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