Hibernate execution update date error

clipboard.png
the error in executing the above code is as follows:

"PreparedStatementCallback; SQL [UPDATE yposx_store_goods SET update_time=?, store_market_enable=?, goods_id=? WHERE shop_id="5" AND goods_id="139"Data truncation: Incorrect datetime value: "Mon Nov 12 15:39:14 CST 2018" for column "update_time" at row 1; nested exception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value:" Mon Nov 12 15:39:14 CST 2018 "for column" update_time" at row 1",

there is no problem with performing insertion

Nov.09,2021

is the database field of type dataTime?
this article will see if it can help you https://www.cnblogs.com/tjlgd.

.
Menu