MySQL Database
MySQL Check
Restrict values with a Boolean condition.
CREATE TABLE products (
price DECIMAL(10, 2),
CHECK (price >= 0)
);CHECK prevents rows that violate the declared condition.
Continue learning
MySQL Database
Restrict values with a Boolean condition.
CREATE TABLE products (
price DECIMAL(10, 2),
CHECK (price >= 0)
);CHECK prevents rows that violate the declared condition.
Continue learning