wahts is mean by primary key and unique key?
Answer Posted / bhausaheb.chate
Primary Key:- Primary Key is an attribute or a set of
attributes in a table which uniquely identifies a record
(row) in a table and no two records (rows) in the table can
have the same values for all the columns comprising the
primary key.
Unique Key:- A unique key is a key which stores unique
values (no duplicates) for that particular column.
Difference between Primary Key & Unique Key:-
1. A Unique key can store a null value and primary key
cannot store any null value.
2. A primary key can be references to another table as a
Foreign Key.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Under what circumstances, that all four drivers are used?
Is oracle client required for jdbc connection?
What is JDBC Connection? Explain steps to get Database connection in a simple java program.
What is jdbc type?
What are different types of JDBC Drivers?
What is hbm xml?
Compare jdbc and odbc and how is jdbc required in this context.
What is drivermanager in java?
How can we disable a constraint ?
What is the fastest type of JDBC driver?
What are temp tables ?
What is an encrypted internet connection?
Explain different types of locks in jdbc?
How can we store and retrieve images from the database?
What is jdbc architecture?