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: Unique numeric column in Oracle V7.3

Re: Unique numeric column in Oracle V7.3

From: John Dengler <jdengler_at_netacc.net>
Date: 1997/09/23
Message-ID: <3428582C.14B7@netacc.net>#1/1

You can use an Oracle sequence to generate your unique value. The sequence can be created with various options so that the next value of the sequence obtained meets your needs. You should be able to reference the CREATE SEQUENCE syntax in the SQL Manual and then use the pseudo column nextval in your insert statement/trigger to post the new value. There also is a pseudo-column called currval which contains the latest value of the sequence that your session has obtained. Hope this helps. Received on Tue Sep 23 1997 - 00:00:00 CDT

Original text of this message

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