数据库报错java.sql.SQLException: Field ‘id‘ doesn‘t have a default value

粗心的问题,报错,原因是设计表的时候,主键没有勾选自增,就没有默认值报错,
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42260782/article/details/109996016