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

How many types of tables supported by oracle?

1076


Can we call procedure inside function in oracle?

1086


What happens to indexes if you drop a table?

1169


What is the difference between formal parameters and actual parameters?

1086


How to grant create session privilege to a user in oracle?

999


What is SQL Tuning Advisor in Oracle?

1178


What is the usage of control file in oracle?

1084


What is an Oracle Instance?

1121


What are the execution control statements in oracle?

1092


What do you mean by a database transaction & what all tcl statements are available in oracle?

994


How to get a list of all user accounts in the database?

1087


Why we use bulk collect in oracle?

1044


How to turn on or off recycle bin for the instance?

1083


Difference between varchar and varchar2 data types?

1184


How to sort output in descending order in oracle?

1043