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

Home -> Community -> Usenet -> c.d.o.tools -> Altering a table by adding a primary key column

Altering a table by adding a primary key column

From: Bill Hutchison <billh_at_gci.net>
Date: Tue, 5 Jun 2001 12:45:45 -0800
Message-ID: <thqhcjfoaoqp72@corp.supernews.com>

I haven't been able to find documentation on adding a column which is to be the primary key of the table.

I want to add a column ID which will be numeric, and should auto-increment. I need to populate it for existing records. Is there a datatype which autoincrements,  or must this be taken care of by a trigger?

Please suggest how I should accomplish this. I have EZSQL, but am a beginner in using it.

Thanks very much!
Bill Hutchison Received on Tue Jun 05 2001 - 15:45:45 CDT

Original text of this message

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