By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,537 Members | 2,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,537 IT Pros & Developers. It's quick & easy.

Adding primary constraint on a table if you have duplicated records already .

P: 7
hi,

can anybody can tell me how to add pry constraint to a table if it has already duplicated records ? san
Aug 26 '08 #1
Share this Question
Share on Google+
4 Replies


debasisdas
Expert 5K+
P: 8,127
try to add a NOVALIDATE constraint.
Aug 26 '08 #2

amitpatel66
Expert 100+
P: 2,367
But why you need to do that? A primay key with duplicates??
Aug 27 '08 #3

P: 7
hi,

thanks , but can you tell me : if we have to use it in 'alter table statement' or any other way ?

san
Aug 31 '08 #4

P: 21
You can disable the constraint by using alter table statement.

Then insert records into it.

But if there will be duplicate records you won't be able to create a Primary Key on that column.
Sep 4 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.