Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Oracle only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Oracle
Adding primary constraint on a table if you have duplicated records already .
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
sanQUEST
New Member
Join Date:
Aug 2008
Posts:
7
#1
Adding primary constraint on a table if you have duplicated records already .
Aug 26 '08, 03:02 AM
hi,
can anybody can tell me how to add pry constraint to a table if it has already duplicated records ? san
debasisdas
Recognized Expert
Expert
Join Date:
Dec 2006
Posts:
8119
#2
Aug 26 '08, 11:51 AM
try to add a NOVALIDATE constraint.
Comment
Post
Cancel
amitpatel66
Recognized Expert
Top Contributor
Join Date:
Mar 2007
Posts:
2358
#3
Aug 27 '08, 10:13 AM
But why you need to do that? A primay key with duplicates??
Comment
Post
Cancel
sanQUEST
New Member
Join Date:
Aug 2008
Posts:
7
#4
Aug 31 '08, 02:36 AM
hi,
thanks , but can you tell me : if we have to use it in 'alter table statement' or any other way ?
san
Comment
Post
Cancel
Dilip1983
New Member
Join Date:
Jan 2008
Posts:
21
#5
Sep 4 '08, 03:40 AM
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.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment