Difference between primary key and unique key ?

Answer Posted / arpit sachan

Primary key Accept only one Null Value...But a Unique key Accept one or More Null value........

create table #foo(id varchar(5)primary key,name varchar(10));

insert into #foo('','Your name');

---------->> see the result.....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to delete a column in an existing table?

602


What is the dynamic sql in oracle?

610


What is oracle and what are its different editions?

585


Explain the use of grant option in exp command.

590


What is sharded cluster?

530






Difference between oracle's plus (+) notation and ansi join notation?

585


What privilege is needed for a user to delete rows from tables in another schema?

570


What is blob data type in oracle?

567


How to view the tablespaces in the current database?

566


Can a formula column referred to columns in higher group ?

2093


What is raw datatype in oracle?

591


What is oracle rownum?

522


What is an oracle user role?

579


How to create an oracle testing table?

603


Can we use oracle pl/sql block in core java? if so how? pls get back to me .....

2516