CHECK constraint in MySQL is not working

后端 未结 8 2046
Happy的楠姐
Happy的楠姐 2020-11-21 05:15

First I created a table like

CREATE TABLE Customer (
  SD integer CHECK (SD > 0),
  Last_Name varchar (30),
  First_Name varchar(30)
);

8条回答
  •  悲哀的现实
    2020-11-21 05:35

    The CHECK constraint doesn't seem to be implemented in MySQL.

    See this bug report: https://bugs.mysql.com/bug.php?id=3464

提交回复
热议问题