MySQL Database
MySQL Constraints
Enforce valid relationships and values in a MySQL table.
Constraints are database rules such as NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK, and DEFAULT.
CREATE TABLE users (
id INT PRIMARY KEY,
email VARCHAR(255) UNIQUE NOT NULL
);Continue learning
