Difference between primary key and unique key ?

Answer Posted / anand b

Primary Key : Is an identity of a row, Only one primary key per table, No duplicate values allowed, & No NULL values are allowed.

Unique Key : Its values are unique, It can contain any number of NULL values unless combination is going to be unique.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to assign values to variables?

584


What privilege is needed for a user to create tables in oracle?

558


What is execute immediate in oracle?

554


How to assign a table row to a record variable?

586


Explain the importance of .pll extension in oracle?

561






What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?

4026


Point out the difference between user tables and data dictionary?

550


How do I use os authentication with weblogic jdriver for oracle and connection pools?

585


What is a private synonym?

1090


How to use attributes of the implicit cursor in oracle?

567


What is a named program unit?

592


Is truncate autocommit in oracle?

646


How to use "in" parameter properly?

623


How to revoke create session privilege from a user in oracle?

566


Can you assign multiple query result rows to a variable?

555