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 execute in java?
What are the steps involved in establishing a connection using jdbc in java?
What is the difference between client and server database cursors?
How do I disallow NULL values in a table?
Is jdbc part of j2ee?
What are the common JDBC problems that you got and how do you solved them?
What is an escape syntax?
What are the differences between stored procedure and functions?
What are the standard isolation levels defined by JDBC?
Is not bound in this context unable to find jdbc spring boot?
List the advantages of using datasource?
What is JDBC Driver interface?
Explain the steps in writing a java program using jdbc?
What is jdbc odbc bridge?
What is a statement?