MyBatis踩坑记录 Column count doesn‘t match value count at row 1

今天遇到 Column count doesn‘t match value count at row 1 这个问题, 提示我列数不正确

然而...我的列数是正确的 

事实上是因为

<foreach collection="list" item="item" index="index" separator="," open="(" close=")">

的原因造成的,open和close: open="(" close=")会在最外层在包一层括号 

参考资料:

https://blog.csdn.net/m0_37628958/article/details/110679707

猜你喜欢

转载自blog.csdn.net/flyconley/article/details/118193585