what are the advantages of primary key over unique+notnull
Answer Posted / tulsi
Primary key will avoid duplicate and null values in a table
which the combination of unique+not null will do.But the
advantage is,if a table has primary key we can create
relation to child tables.
| Is This Answer Correct ? | 28 Yes | 13 No |
Post New Answer View All Answers
What is the largest value that can be stored in a byte data field?
what is the difference between rownum pseudo column and row_number() function? : Sql dba
What is the difference between cluster and non-cluster index?
How many types of privileges are available in sql?
Can I call a procedure inside a function?
how can we destroy the session, how can we unset the variable of a session? : Sql dba
What is sql in oracle?
How do I sort a table in sql?
when is the use of update_statistics command? : Sql dba
what is the command line end user interface - mysql? : Sql dba
Does truncate require commit?
what are the limitations of identity column? : Transact sql
How do rank () and dense_rank () differ?
How to fetch values from testtable1 that are not in testtable2 without using not keyword?
What are the 3 types of behavioral triggers?