MySql_ErrorCode1364

Unable to translate SQLException with Error code '1364'

error code [1364]; Field 'id' doesn't have a default value; nested exception is java.sql.SQLException: Field 'id' doesn't have a default value

数据库字段 id  没有设置自增,导致在插入时,没有默认值。

posted @ 2016-02-19 20:02  王自强  阅读(919)  评论(0编辑  收藏  举报