MySQL: Check constraint with Date

后端 未结 3 1683
说谎
说谎 2021-01-20 00:16

I am using MySQL and here is a simple query set:

create table dcheck (
    fdate date,
    sdate date,
    check (fdate <= sdate)
);

insert          


        
3条回答
  •  無奈伤痛
    2021-01-20 00:42

    The CHECK clause is parsed but ignored by all storage engines.
    

    http://dev.mysql.com/doc/refman/5.1/en/create-table.html

提交回复
热议问题