Difference between primary key and unique key ?
Answer Posted / dpkar
Primary Key:
Primary key will create column data uniqueness in the table.
Primary key will create clustered index by default
Only one Primay key can be created for a table
Multiple columns can be consolidated to form a single
primary key
It wont allow null values.
Unique Key :
Unique key constraint will provide you a constraint like
the column values should retain uniqueness.
It will allow null value in the column.
It will create non-clustered index by default
Any number of unique constraints can be added to a table.
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?
How to convert csv to table in oracle?
How to create a stored function in oracle?
What is a Garbage Collection? and what is full recursive Garbage collection?
What to do if dba lost the system password?
Explain the use of analyse option in exp command.
How do you find out from the RMAN catalog if a particular archive log has been backed-up?
What exactly do quotation marks around the table name do?
In what script is snap$ created? In what script is the scott/tiger schema created?
does the query needs a hint to access a materialized view?
Name the three major set of files on disk that compose a database in Oracle?
Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.
In AP we done Customizations for Late Payments Charges. For Reporting Purpose What are the Documents Prepared for Customer Understanding??
How to find out what oracle odbc drivers are installed?
In SAP ECC 6.0 , under DB02 tcode , Tablespace name to be explain stepy step all the col