我对此查询有疑问,无法弄清楚问题出在哪里。我正在尝试运行:update earnings_history set
Date_formatted = STR_TO_DATE(
temp_date, '%m/%d/%Y');
将我的字符串转换为日期,但出现此错误。
Error Code: 1292. Incorrect datetime value: '2015-02-29' for column 'Date_formatted' at row 5610
然而这个查询:select temp_date from earnings_history where
temp_dateREGEXP '[-]';
没有找到任何行。
我使用格式完全不同的表中的 %Y-%m-%d ,但它们似乎混合在一起?