Is it possible in MySQL to put a CHECK in your CREATE TABLE sentence? I have try this below but it doesn't work at all.
CREATE TABLE test(
id TINYINT UNSIGNED NOT NULL ,
PRIMARY KEY ( id ) ,
UNIQUE UC_id( id ) ,
CHECK (
id > 33
)
);
CREATE TABLE test(
id TINYINT UNSIGNED NOT NULL ,
PRIMARY KEY ( id ) ,
UNIQUE UC_id( id ) ,
CHECK (
id > 33
)
);