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 bind variable in oracle 11g?

591


Point the difference between translate and replace?

577


What are the arithmetic operations?

592


What is where clause in oracle?

534


How view is different from a table?

560






what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?

1851


Explain the use of tables option in exp command.

595


I have a parent program and a child program. I want to write a statement in Exception Block of the parent program so that when the statement in the exception block is executed, the control goes to the next statement in the parent block bypassing the child block.How do i do that?

1978


How do I find the database name in oracle?

603


Difference between open_form and call_form in oracle.

684


How to do a full database export?

641


What are the ansi data types supported in oracle?

523


What are the restrictions on external table columns?

552


when we are importing items in inventory, showing errors, Oracle support suggested us for running scripts & also suggested if we run scripts, iprocurement applicaation if is there it will show shared and if we go in future for iprocurement, it wont work. So kinldy suggest any functional solution.

1477


How to bring a tablespace offline?

544