![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
代码为生的烨天星
这个作者很懒,什么都没留下…
展开
-
Mybatis报错 Result Maps collection already contains value for 原因汇总
当Mybatis报错 Result Maps collection already contains value for的时候,有哪些原因呢?一、Mybatis-Generator根据配置文件生成XML的锅Mybatis-Generator生成xml等又快有方便,但是如果同名xml之前已经存在,那么生成的时候会在xml里面在之前的代码后面继续追加,而不会覆盖同名的语句。因此有可能报这个错误解决方案如果是再次生成代码,必须先将已经生成的代码删除,仔细检查一下xml文件看是否存在两个id为Bas原创 2020-05-18 16:39:47 · 28585 阅读 · 9 评论 -
利用存储过程做mysql循环插入1
DROP PROCEDURE if exists insertdata;delimiter //CREATE PROCEDURE insertdata()begindeclare yourid BIGINT;set yourid = 123460000000000001;while yourid insert into db_zone_role.tbl_role_buy原创 2016-08-08 14:00:49 · 1402 阅读 · 0 评论