Difference between primary key and unique key ?

Answer Posted / umapathy.r

The column holding the primary key constraint cannot accept
null values.whereas colum holding the unique constraint can
accept null values assume that t3 is a table with two
columns t1 having primary key constraint and t2 having
unique constraint if u try to insert null into t2 it will
accept that values whereas column t1 will not accept null

Is This Answer Correct ?    1164 Yes 121 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a rollback possible to any savepoint?

734


How to create a single index for multiple columns?

745


How do I find the database name in oracle?

755


What are the original export and import utilities?

743


What is the fastest query method to fetch data from the table?

1073






What do you mean by a database transaction & what all tcl statements are available in oracle?

753


How to bring a tablespace online?

722


What are the predefined tablespaces in a database?

745


How to execute the package in oracle?

790


What are the ansi data types supported in oracle?

693


Explain an index segment?

818


What are set operators?

815


Is oracle an open source?

786


What is meant by joins? List out the types of joins.

700


Hi friends can u send the oracle 9i full version download link?????????????? please reply ?

1614