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

What happens to the current transaction if a ddl statement is executed?

580


What is system tablespace?

633


What is oracle and what are its different editions?

581


What is PL/SQL ?

1116


Can group functions be mixed with non-group selection fields?

536






Why do we use bulk collect in oracle?

571


What is Data Dictionary Cache in Oracle?

664


What are internal user account in oracle?

571


Is a rollback possible to any savepoint?

558


How to write a query with an inner join in oracle?

564


What are the different types of modules in oracle forms?

564


How do I limit the number of oracle database connections generated by weblogic server?

555


How to invoke the data pump export utility?

565


What is ordinary table in oracle?

653


What is a database schema in oracle?

625