MySQL state [HY000]; error code [1364];

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL state [HY000]; error code [1364];相关的知识,希望对你有一定的参考价值。

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Could not execute JDBC batch update; uncategorized SQLException for SQL [insert into jinhaitai.indent (usersId, oaId, plwId, orderTime, payStatue, orderSend, orderMoney, orderPickup, orderDispatch, payId, orderId) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; SQL state [HY000]; error code [1364]; Field 'zffs' doesn't have a default value; nested exception is java.sql.BatchUpdateException: Field 'zffs' doesn't have a default value

参考技术A zffs 字段不允许为空 而你插入时也没插入值追问

不是 以找到 问题 是我在 xml 里没有去映射 这个 字段

SQL state [HY000]; error code [1366];

参考技术A character_set_server 已经设置为 utf8mb4, 但是插入表情报错

jdbc 设置连接字符 utf8mb4

以上是关于MySQL state [HY000]; error code [1364];的主要内容,如果未能解决你的问题,请参考以下文章