Is primary key = unique key,not null?
If yes,please explain
IF No,please explain

Answer Posted / kirti

Yes.When a column is assigned primary key it means it
contains unique value(i.e. no duplicate value is allowed) &
it can't accept null values.
Whereas unique key means no duplicare value is allowed, but
null value is allowed. And not null means no null value is
accepted but duplicate value can be passed.
So when we assign primary key to a column, the column
becomes both unique & not null.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I start tns listener?

538


How to create a temporary table in oracle?

687


How to open and close an explicit cursor in oracle?

573


hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards

1562


What is concurrency in oracle?

540






How to change user password in oracle?

603


How to loop through a cursor variable?

567


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

571


What are the differences between lov and list item?

559


How to enter a new row into a table interactively?

544


What is object data modeling?

501


What is the usage of synonyms?

580


What is enter substitution variable in oracle?

570


What is max rowid in oracle?

551


Why use resource manager in Oracle?

661