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

Answer Posted / arti kesharwani

No they are not equal because
we can have more than one column with not null+Unique constraints but we can have only one primary key in the table.
e.g
we can not create a table like this
create table test(id number primary key , name varchar2(10) primary key)
but we can create
create table test(id number unique not null , name varchar2(10) unique not null)

Is This Answer Correct ?    19 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is SQL Tuning Advisor in Oracle?

631


What is connection pooling in oracle?

552


What is an oracle cursor variable?

607


How would you configure your networking files to connect to a database by the name of DSS which resides in domain icallinc.com?

1464


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

572






Can we call procedure inside function in oracle?

604


how to make an oracle object

1854


What is where clause in oracle?

526


How to create a new table by selecting rows from another table?

548


Is oracle a language?

522


How to do paging with oracle?

572


What is the difference between sharding and partitioning?

499


Does oracle database need java?

520


what is the dual table in oracle?

549


What is a user role in oracle?

613