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...

If we declare constraints Unique and Not null on a single
column then it will act as a Primary key, so what is the use
of primary key??

Answer Posted / neha sinha

1) Primary key creates clustered index and unique key
creates non-clustered index. Performance wise clustered
index is fast so we need Primary key.
2)if we need more then one primary key in table than we can
use unique key+NOT NULL becous it behave as Primary key but
we cant define more than one column as primary key. :)

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will you get by the cursor attribute sql%notfound?

1055


what are tables and fields? : Sql dba

1042


What is a data manipulation language?

1019


Can we use pl sql in sql server?

1078


Why is sql better than hql?

980


Can we join two tables without common column?

999


How can you fetch common records from two tables?

1055


What is the reports view in oracle sql developer?

972


What is a temporal data type?

1041


What is an index? What are the types of indexes? How many clustered indexes can be created on a table?

1065


how many triggers are allowed in mysql table? : Sql dba

1059


How many sectors are in a partition?

1072


What are the different dml commands in sql?

1166


Can we connect to postgresql using sql developer?

997


What is the difference between syntax error and runtime error?

1129