Difference between primary key and unique key ?
Answer Posted / austin johnson
we can't insert a NULL value into to coloumn holding
primary key constrain.
where as we can insert a NULL value to a unique key feild.
Remember, both keys are used to identify the
rows/tuple/entry of the table uniquely.
so, only once u can enter a NULL value into the unique key
feild.
| Is This Answer Correct ? | 146 Yes | 57 No |
Post New Answer View All Answers
How to use select statement to count the number of rows in oracle?
What is oracle host variable?
How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?
What is a nvl function?
In XIR2 if we lost the administration password .How can we regain the password?thanks in advance.
Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.
What is the difference between view and materialized view in Oracle?
How to synchronize 2 schema's objects?
How to retrieve data from an cursor to a record?
How we can able to import our own template (users designed MS-Word templates) which has many tabular columns; need to pass some values generate by Oracle-reports9i? Actually need to import more than 400 MS-Word templates into Oracle Reports-9i to minimize layout design in Reports.
What is the difference between substr and instr?
How to join two tables in a single query using oracle?
What is a trace file and how is it created in oracle?
How to run create database statement?
In what script is snap$ created? In what script is the scott/tiger schema created?