如何检查DAYOFWEEK(CURDATE())的结果是否存在于列中?

时间:2017-04-13 15:51:51

标签: mysql

Dim query As String = "SELECT * FROM table WHERE column CONTAIN DAYOFWEEK(CURDATE())"

列的DateType是VARCHAR,数据是逗号的数字,如“0,1,2,4,5”

今天的例子是星期五DAYOFWEEK(CURDATE())将返回6如何检查列是否包含6?

0 个答案:

没有答案