Difference between primary key and unique key ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is key preserved table?

572


How to update a table row with a record?

602


What the is the diff between local index and global index. give some example.

1145


What are the components of logical database structure in oracle database?

589


How to insert a new row into a table in oracle?

599






Hi this srilatha. I comlpeted my Oracle-hrms. can u provide me interview questions on Core hr, payroll,sshr,OLM etc..

1665


Explain drop constraint oracle?

599


What is oracle update statement with inner join ?

588


What is PL/SQL ?

1123


What is set operator oracle?

536


How to start your 10g xe server from command line?

553


Explain the blob datatype?

625


How to insert a record into a table?

649


How to write a left outer join with the where clause in oracle?

638


what is the difference between data migration and production migration.

1815