我只想创建日期格式(%d-%m-%Y)
的查询语句 像这样: SELECT * FROM TRANSACTION
WHERE DATE(date_Transaction) = DATE_FORMAT('19-04-1994', '%d-%m-%Y');
但结果是
空集,2警告(0.00秒)
答案 0 :(得分:1)
SELECT * FROM `TRANSACTION`
WHERE DATE(date_Transaction) = STR_TO_DATE('19-04-1994', '%d-%m-%Y');