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

Compare and contrast between sql and sql server and explain its various functions?

927


What happens to the current transaction if a ddl statement is executed?

958


How to store pictures on to the database?

931


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

2154


Why is oracle database so popular?

951


What do you mean by merge in oracle and how can we merge two tables?

1009


What is the usage of synonyms?

1075


What is user managed backup in Oracle?

1089


Which is better Oracle or MS SQL? Why?

6275


What happens to the current transaction if the session is ended?

1046


Why is oracle used?

887


How many memory layers are in the oracle shared pool?

1116


How to export several tables together?

998


What happens if recursive calls get out of control?

1011


How to load data through external tables?

1082