开发者社区 问答 正文

程序报错 怎么弄求指点~~?报错

异常信息---->org.springframework.jdbc.UncategorizedSQLException:

Error updating database.  Cause: java.sql.SQLException: session was killed!!

The error may involve com.lkb.mobiledetaildao.IMobileDetailDao.insertbatch-Inline

The error occurred while setting parameters


SQL: insert into  t_1396mobiledetail  ( id,cTime,tradeAddr,tradeWay,recevierPhone,tradeTime,taocan,onlinePay,phone,iscm) values  .

展开
收起
爱吃鱼的程序员 2020-06-14 17:43:03 538 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    传入的对象是个集合?如果是,集合长度为0<atarget='_blank'>@尛霖我从异常估计是这个原因是说集合中没有东西,导致插入出错么?

    <spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;"> Theerroroccurredwhilesettingparameters

    <spanstyle="font-size:14px;line-height:22px;background-color:#FFFFFF;">应该是传入的参数值有问题

    真心不是哇这点insert的代码放出来看看。

    INSERTcommanddeniedtouser'lkbadmin'@'118.186.242.229'fortable't_1389mobileonlinelist';

    是不是引号不对?

    badSQLgrammar[];应该检查下传值打断点调试啊你把sql放到数据库执行一下不就知道了,在检查一下有没有代码关闭数据库连接的代码

    2020-06-14 17:43:21 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
问答分类:
SQL
问答地址:
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等