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 -> SQL Question - Identity columns

SQL Question - Identity columns

From: Frank LaRosa <frank_at_franklarosa.com>
Date: Mon, 20 Nov 2000 18:50:20 -0600
Message-ID: <3A19C6CC.D69DB5F1@franklarosa.com>

Hello,

I'm new to Oracle but I have several years of experience with Microsoft SQL Server.

In SQL Server there is a column type called IDENTITY. Basically this is a numeric column that is automatically assigned the next highest number each time a row is inserted into the table (i.e. first column gets a 1, next column gets a 2, etc). I use it extensively for creating primary keys.

Does Oracle's SQL language have the equivalent? If not, what's the best way to simulate the same behavior?

Thanks. Received on Mon Nov 20 2000 - 18:50:20 CST

Original text of this message

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