How can I define a column of a MySQL table PRIMARY KEY without using the PRIMARY KEY keyword?
Answers
Answered by
1
MySQL Primary Key. A primary key must contain unique values. If the primary key consists of multiple columns, the combination of values in these columns must be unique. A primary key column cannot contain NULL values. It means that you have to declare the primary key column with the NOT NULL attribute.
Similar questions
Art,
6 months ago
Math,
6 months ago
Hindi,
6 months ago
Physics,
1 year ago
Physics,
1 year ago
Psychology,
1 year ago
Political Science,
1 year ago
Math,
1 year ago