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
What is snapshot is too old? Give and example for better understand.
How many types of database triggers exist?
How to rename a column in an existing table?
What are the different types of record groups in oracle? Explain each of them
Explain the blob datatype?
How to define a data field as not null?
Explain oracle insert into command?
Why packages are used in oracle?
Can you assign multiple query result rows to a variable?
What is program global area (pga) in oracle?
How will you differentiate between varchar & varchar2?
What are the restrictions on external table columns?
What are the arithmetic operations?
What are the logical operations?
What is an index associated with a constraint?