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 / anuradha

The unique column constraints permits multiple entries of
null in the column. these null values are clubbed at top of
column in order they were entered into table. this is
essential difference .

Table have more than 1 unique key which is not possible in
primary key

Is This Answer Correct ?    1 Yes 0 No

Difference between primary key and unique key ?..

Answer / chauhan rakesh botad

Primary key doesnot allow null value but unique key allows
null value. We can declare only one primary key in a table
but a table can have multiple unique key(column assign).

Is This Answer Correct ?    1 Yes 0 No

Difference between primary key and unique key ?..

Answer / pawan mishra

One table may have more than one Unique Key Constraint
columns, but should have only one Primary Key Constraint
column.

Is This Answer Correct ?    1 Yes 0 No

Difference between primary key and unique key ?..

Answer / ibrahim

PRIMARY KEY is identity of each row. UNIQUE KEY also
identity of each row.
PRIMARY KEY not accepts null values but unique can accept null.

but the core different between primary key and unique is we use primary key to link tow tables with each other but we can not use unique key to do this.

Is This Answer Correct ?    1 Yes 0 No

Difference between primary key and unique key ?..

Answer / pandiyan

Primary key doesnot allow null value but unique key allows
null value.

Is This Answer Correct ?    1 Yes 0 No

Difference between primary key and unique key ?..

Answer / chetan sharma

Primary key creates Clustered Index.
Unique key creates non-clustered Index.

the no of primary key in a table is one but the no of
unique is more then one

there is only one primary key for one table;
it can not acept null values;
any no uniquefor a table;
it can accept null values;
which the rows are unique value;

Is This Answer Correct ?    1 Yes 0 No

Difference between primary key and unique key ?..

Answer / lucky

Primary key not accepts to null values in database, but
uniqe key accepts to the null values in database.

Each table having only one PRIMARY KEY.And my contain many
UNIQUE KEYS.
PRIMARY KEY is identity of each row. UNIQUE KEY also
identity of each row.
BOTH keys will not contain repeated value.
BUT UNIQUE KEY will contain NULL value but PRIMAY key will
not contain NULL value.

Is This Answer Correct ?    1 Yes 0 No

Difference between primary key and unique key ?..

Answer / pramod paunikar

Both primary key and unique enforce uniqueness of the
column on which they are defined. But by default primary
key creates a clustered index on the column, where are
unique creates a non-clustered index by default. Another
major difference is that, primary key does not allow NULLs,
but unique key allows only one NULL only.

Is This Answer Correct ?    2 Yes 1 No

Difference between primary key and unique key ?..

Answer / manoj routh

Both primary key and unique enforce uniqueness of the column
on which they are defined. But by default primary key
creates a clustered index on the column, where are unique
creates a nonclustered index by default. Another major
difference is that, primary key doesn't allow NULLs, but
unique key allows one NULL only.

Is This Answer Correct ?    1 Yes 0 No

Difference between primary key and unique key ?..

Answer / sikander

Primary key does not allow null value but unique key allows
null value. suppose tableA two column : columnB & columnC .
where coulmnB is primary key & columnC is unique key.
If we insert null value in columnB.It will not accept
columnB but columnC

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Oracle General Interview Questions

What different of iner joint & outer joint with example

4 Answers  


Write a simple Store procedure and pass parameter to it ?

3 Answers   Keane India Ltd,


Please explain the difference between outer join and inner join? With examples would be appreciable..!

6 Answers   IBM,


i wrote a pl/sql procedure. it must run every sunday 4.40 How can i schedule it with the help of dbms_jobs (or another other procedure with out creating bat file,exe file)

0 Answers   eicc,


What are the restrictions in a oracle read only transaction?

0 Answers  


What are ACID properties in databases?

1 Answers  


Explain a synonym?

0 Answers  


How to convert characters to numbers in oracle?

0 Answers  


What do you understand by database schema and what does it hold?

0 Answers  


what are the mandortary parameters required for cuncurrent program definition in oracle apps R12?

1 Answers   Arrow Electronics,


What is Redo Log Buffer in Oracle?

0 Answers   MCN Solutions,


what is difference between DBMS and RDBMS?

2 Answers   Metric Stream,


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)