Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Primary Key and Unique Key

517373Jan 5 2007 — edited Jan 5 2007
Hi All,

I have one query for creating Primary Key & Unique Key.

1) Is there possible to create the primary after loading data.

For example, In EMP table i have inserted 10 rows with duplicates(EMP_ID). After inserting the datas i want to create the primary for EMP_ID. Now EMP_ID duplicate values are enforcing or not?


2) I create one unique constraint for one column. Unique accepts null value. But its not accept duplicate values.

My question is Shall give more than one null value into unique constraint column.


Cheers,

Moorthy.GS
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 2 2007
Added on Jan 5 2007
11 comments
643 views