0
SELECT
*
FROM
table_temp
WHERE
install_date < NOW()
AND install_date > DATE_FORMAT(2011 - 06 - 16, "%Y-%m-%d")
SELECT
*
FROM
table_temp
WHERE
install_date < NOW()
AND install_date > DATE_FORMAT(2011 - 06 - 16, "%Y-%m-%d")
問題駐留在泰斯行:
install_date > DATE_FORMAT(2011 - 06 - 16, "%Y-%m-%d")
首屆變量應該是一個日期
例如一串:
SELECT DATE_FORMAT('2007-10-04 22:23:00', '%H:%i:%s');
或者你的情況:
install_date > DATE_FORMAT('2011 - 06 - 16', "%Y-%m-%d")
值2011 - 06 - 16需要用引號包裝