Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the difference between substr & instr functions?

1231


What is literal?

1009


How to experiment a data lock in oracle?

1057


What operating systems are supported by oracle database 10g xe?

1034


What is oracle used for?

1026


What is a named program unit?

1088


What is redo log?

1070


In not less than 100 words what's the main difference between Rolap and Molap in ORACLE ?

2288


State all possible different index configurations a table can possibly have?

1009


what are bitmap indexes? How does they work?

2259


What is an oracle database?

1043


What are the differences between blob and clob in oracle?

1089


How to delete a column in an existing table?

1076


What are the attributes that are found in a cursor?

1079


What are the parameters that we can pass through a stored procedure?

1067