Difference between primary key and unique key ?
Answer Posted / vaithianathan
primary key not accepts null value and
not allows duplicate values.
but Unique key not allows duplicate values
but it accepts ONLY ONE NULL VALUE.
only one primary key allowed per table
we can create multiple unique keys
on the table
By Default, Primary key creates Clustered Index and Unique key Creates Non Clustered Index
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is sequence?
What is oracle in java?
How to drop an existing table in oracle?
What privilege is needed for a user to query tables in another schema?
Why does for update in oracle 8 cause an ora-01002 error?
Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.
Is it possible to split the print reviewer into more than one region ?
How do you increase the OS limitation for open files (LINUX and/or Solaris)?
How to run the anonymous block again?
What are a cluster and non-cluster index?
What is a directory object?
How to shutdown your 10g xe server?
What is the use of file param in imp command?
How to use "out" parameter properly?
Can you drop an index associated with a unique or primary key constraint?