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

hi friends i completed b.com 2004.i have 3y accounting exp. in manufacturing company.now i have completed oracle finance.pls suggest me how will get job in oracle.can i get job in oracle.

1965


How to create an oracle database?

587


What is a lookup table in oracle?

542


How to export your own schema?

573


How to see the table columns used in an index?

596






What is the best way to do multi-row insert in oracle?

564


Why does for update in oracle 8 cause an ora-01002 error?

550


normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi

1744


Explain compound trigger in oracle?

552


How to create a new table in oracle?

593


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

628


what is the scripts in data base?

1605


What is tns service name?

625


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

564


Can we use bind variables in oracle stored procedure?

491