Primary key is a column or set of columns which uniquely identifies a row in a table.There must be only one primary key for each table.It does not contains any null values.It also does contains any duplicate values.All the values in the primary keycolumn must be unique.It is a unique key.
Unique key is a constraint which is defined on a column in a table to avoid duplicatevalues in that column.But it allows one null value
|
No comments:
Post a Comment