![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误归纳
jing1008-wang
这个作者很懒,什么都没留下…
展开
-
使用case-when时需要注意一个点
当时Mapper中就只有一段简单的update语句,如下:UPDATE 表1 a, 表2 bSET a.hzjy_flag = case b.HZJYBZ when '1' then '1' when '2' then 2 else '2' end, a.reference_price = b.CKJGWHERE a.market_no = b.JYSC AND a.r...原创 2019-12-19 11:05:25 · 360 阅读 · 0 评论 -
关于mysql中Timestmap字段修改报错:mybatis invalid comparison: java.sql.Timestamp and java.lang.String
今天在做毕设的过程中由于粗心遇到了两个问题,第一个是try-catch,语句中未抛出异常,导致始终都找不到错误所在,加了异常处理之后看到mybatis报错信息:mybatis invalid comparison: java.sql.Timestamp and java.lang.String起初以为是java数据类型操作不当,引起的错误,但是发现插入操作是正确的,然鹅更新操作不正确,再网上看...原创 2019-03-14 15:35:51 · 453 阅读 · 0 评论