03 2023 档案

摘要:问题 在走接口的时候,需要使用mybtatis的批量更新,偷了个懒使用Foreach的形式拼接多个sql语句进行更新。结果在执行到这个sql的时候update一直报错 ### Error updating database. Cause: java.sql.SQLSyntaxErrorExcepti 阅读全文
posted @ 2023-03-26 17:51 xingmeng1 阅读(585) 评论(0) 推荐(0) 编辑
摘要:mysql关联表查询最新的数据 select it.name,ns.id,it.id childId,it.id_card idCard,it.card_type cardType,it.birthday,ns.guardian guardian,ns.mother_phone motherPhon 阅读全文
posted @ 2023-03-23 16:21 xingmeng1 阅读(94) 评论(0) 推荐(0) 编辑
摘要://切片插入,进行更新 if(collect.size() > 500){ List<List<Integer>> partition = ListUtils.partition(collect, 500); for (List<Integer> assignIds : partition) { n 阅读全文
posted @ 2023-03-21 10:07 xingmeng1 阅读(12) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示