标签: mysql date-formatting
我正在尝试此查询:
SELECT date(mydate) FROM invoice where date(mydate) = CURDATE()
我无法得到任何结果但是当我输入日期时我得到了一个结果:
SELECT date(mydate) FROM invoice where date(mydate) = '2015-02-12'
答案 0 :(得分:1)
试试这个:
SELECT date FROM invoice WHERE date = NOW()