我得到了这个错误:这段代码的You have an error in your SQL syntax; check the manual that corresponds to your MySQLpublic String addName() { try { java.text.SimpleDateFor
如果不可能,我可以用MySQL做吗?我试着使用PHPMyAdmin数据转换功能,但它不承认它是一个日期。
编辑,尝试这样做,我得到一个空值作为回报。SELECT str_to_date(`date_created`, 'DD-MM-YYYY') FROM `orders` WHERE id = "1"
= Model1.objects.dates("date", kind="day")SELECT date FROM `table1` group by date ORDER BY`date` ASC关于@e4c5提示,我转储了django查询。实际上,查询中有一个类型强制转换。这是慢的根本原因。`date`, '%