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
Explain the various types of locking system in jdbc?
Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?
Does JDBC support stored procedures?
What is data source in java?
How java can be connected to a database?
What is the meaning of connection?
If I use the JDBC API, do I have to use ODBC underneath?
What isolation level is used by the DBMS when inserting, updating and selecting rows from a database?
Explain how to make updates to the updatable resultsets.
What is JDBC API and when do we use it?
What is statement and preparedstatement in java?
How to test jdbc connection to sql server?
Where can I find ojdbc14 jar file?
What is odbc. how is it related to sql cli?
What is “dirty read” in JDBC? Which isolation level prevents dirty read?