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
What is the meaning of connection?
What is a jdbc url?
How many rowset are available in jdbc?
What is JDBC Transaction Management and why do we need it?
What is Apache DBCP API?
What is jdbc and jpa?
What is benefit of using preparedstatement in java?
What are the components of jdbc?
What is sqlwarning and discuss the procedure of retrieving warnings?
How do you insert images into database using jdbc?
What is jdbc explain?
What is an SQL Locator?
What is the function of setautocommit?
What is database deadlock ? How can we avoid them?
Does jdbc use odbc?