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


Difference between primary key and unique key ?

Answers were Sorted based on User's Feedback



Difference between primary key and unique key ?..

Answer / tom

There is two difference between them.

1. The not null constraint is by default added to primary
key, it means, primary key attribute cannot accept null
values, whereas, the attribute declared as unique can accept
null values. It is the major difference between the two.

2. Secondly, we can have only one primary key in a relation,
whereas, multiple attributes can be declared unique at the
same time.

Is This Answer Correct ?    1 Yes 0 No

Difference between primary key and unique key ?..

Answer / jason james john

unique key is a key that uniquely defines the characteristics of each row whereas primary key consists of characteristics that cannot collectively be duplicated by any other row.primary key will not allow null values whereas unique key will allow nulls.

Is This Answer Correct ?    1 Yes 0 No

Difference between primary key and unique key ?..

Answer / m

thanks for ans.

Is This Answer Correct ?    0 Yes 0 No

Difference between primary key and unique key ?..

Answer / sarvan yadav

primary key does not null,but unique key also null.

Is This Answer Correct ?    2 Yes 2 No

Difference between primary key and unique key ?..

Answer / rajkumar tiwari

Primary key contain non repetitive value and not null
value,and primary key is created on clustered index.In the
table their should be one primary key column.

Is This Answer Correct ?    2 Yes 2 No

Difference between primary key and unique key ?..

Answer / himanshu porwal

Primary key does not allow null values whereas in UNIQUE constraint we can have 1 null value means for that column one null value is allowed.

Is This Answer Correct ?    2 Yes 2 No

Difference between primary key and unique key ?..

Answer / praveen

primary key not allows null values, but unique key allows null values. only one primary is possible in one table, but multiple unique keys are possible in a table. Each unique key accepts only one null field. Both are used to prevent repeated entry of values.

Is This Answer Correct ?    1 Yes 1 No

Difference between primary key and unique key ?..

Answer / suman chatterjee.

uniqe key may contain null values but primary key can not take the null values.

Is This Answer Correct ?    3 Yes 3 No

Difference between primary key and unique key ?..

Answer / mareeswaran-jeyakani

The primary key cannot be accept the null values.The unique key can accept null values. assume that you have a two
columns column1 having primary key constraint and column2 having unique constraint if u try to insert null into column2 it will accept that values whereas column1 will not accept the null values.


THANK YOU.ALL THE BEST...............

Is This Answer Correct ?    2 Yes 2 No

Difference between primary key and unique key ?..

Answer / yogesh kumar

primary key is unique define in a table, it means if u
declare primary key value is not allows duplicate and null.

unique key allows repeats' a value and null.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

cursor attributes are %isopen ,%notfound,%found,%rowcount but is any attributes there other than these? please tell me asap ..

2 Answers  


What is an UTL_FILE.What are different procedures and functions associated with it?

1 Answers  


Anybody can tell me, how do we find second largest emp salary from emp table.. Thanks in advance ...

10 Answers   Cognizant, ID, NTTF Nettur Technical Training Foundation, Sony, Verizon,


What is system tablespace?

0 Answers  


How to create DSN..Explain?

2 Answers   Accenture, BeBo Technologies, Infosys,


How you find out version of installed workflow?

1 Answers  


i have a table with 1 lac of data.i want to insert this data into another table. i want every 5000 of data insert use a commit.using counter and if error is comming in the 5000 of data it rollback.

1 Answers   MasterCard,


can any one help me with import/export options in oracle............

1 Answers  


what r tyhe major differences between oracle 9i & 10g?

6 Answers  


Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?

0 Answers  


What is the difference between I and G in Oracle?

0 Answers   MCN Solutions,


What is a snapshot log?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1809)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)