Cause: java.sql.SQLException: Column count doesn't match value count at row 1
来源:互联网 发布:mac安装office2016激活 编辑:程序博客网 时间:2024/05/16 18:18
异常:Cause: java.sql.SQLException: Column count doesn't match value count at row 1
原因:sql异常,字段列与值列数目或类型不匹配导致。
出现:mapper配置文件中,sql编写错误。
解决:核查sql,排除。
出错SQL:
INSERT INTO delivery_mail_log (customer_id,mail_type,mail_title,mail_content,send_time,message,status,yn,ts,create_time,create_pin,update_pin) VALUES ( #{customerId,jdbcType=BIGINT},#{mailType,jdbcType=VARCHAR},#{mailTitle,jdbcType=VARCHAR}, #{mailContent,jdbcType=VARCHAR},#{sendTime,jdbcType=TIMESTAMP},#{message,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},now(),now(),'system','system' )
修改SQL:
INSERT INTO delivery_mail_log (customer_id,mail_type,mail_title,mail_content,send_time,message,status,yn,ts,create_time,create_pin,update_pin) VALUES ( #{customerId,jdbcType=BIGINT},#{mailType,jdbcType=VARCHAR},#{mailTitle,jdbcType=VARCHAR}, #{mailContent,jdbcType=VARCHAR},#{sendTime,jdbcType=TIMESTAMP},#{message,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},0,now(),now(),'system','system' )
0 0
- Cause: java.sql.SQLException: Column count doesn't match value count at row 1
- java.sql.SQLException:Column count doesn't match value count at row 1
- java.sql.SQLException: Column count doesn't match value count at row 1
- java.sql.SQLException: Column count doesn't match value count at row 1
- java.sql.SQLException: Column count doesn't match value count at row 1
- 问题:java.sql.SQLException: Column count doesn't match value count at row 1
- 异常问题:java.sql.SQLException: Column count doesn't match value count at row 1
- Caused by: java.sql.SQLException: Column count doesn't match value count at row 1
- MySQL报错: java.sql.SQLException: Column count doesn't match value count at row 1
- java.sql.SQLException:Column count doesn't match value count at row 1
- java.sql.SQLException:Column count doesn't match value count at row 1
- Column count doesn't match value count at row 1
- Column count doesn't match value count at row 1
- Column count doesn't match value count at row 1
- Column count doesn't match value count at row 1
- Column count doesn't match value count at row 1
- Column count doesn't match value count at row 1
- Column count doesn't match value count at row 1
- Swift开发教程--关于Existing instance variable '_delegate'...的解决办法
- HDU 1078 FatMouse and Cheese
- 面向对象的三要素、五原则
- 基于CentOS的MySQL学习补充三--使用Shell批量创建数据库表
- license manager administrator无法启动的问题
- Cause: java.sql.SQLException: Column count doesn't match value count at row 1
- JSON.parse()方法
- 尝试创建web项目或打开URL Http/1.0 500 Server Error
- lua中的面向对象
- 用Java实现二叉树
- Java获取最近一周的时间
- HDU 5297 Y sequence(数论 迭代 容斥原理)
- Mac环境下localhhost无法访问
- memcpy函数和memmove函数的区别