Difference between primary key and unique key ?

Answer Posted / austin johnson

we can't insert a NULL value into to coloumn holding
primary key constrain.
where as we can insert a NULL value to a unique key feild.
Remember, both keys are used to identify the
rows/tuple/entry of the table uniquely.
so, only once u can enter a NULL value into the unique key
feild.

Is This Answer Correct ?    146 Yes 57 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to connect to oracle using service name instead of sid?

553


Name the three major set of files on disk that compose a database in Oracle?

635


What are the different types of synonyms?

596


What is the string concatenation operator in oracle?

570


State and explain the different types of data models?

536






Explain mutating triggers.

575


what is difference between sql plus and sql*plus? (not sql and sql plus).

3348


Can you have more than one content canvas view attached with a window ?

1817


Explain a segment?

619


Can we connect to ORACLE db using Windows Authentication?

722


How to unlock the sample user account in oracle?

558


How to view existing locks on the database?

552


What is the quickest way to export a table to a flat file?

572


What is an oracle and why it is used?

623


How to view all columns in an existing table?

549