MySQL 解决数据重复添加
1. sql语句: insert ignore into
insert ignore into 表名 (xx1,xx2,xx3) VALUES (#{xx1},#{xx2},#{xx3})
2. 复合索引
1. sql语句: insert ignore into
insert ignore into 表名 (xx1,xx2,xx3) VALUES (#{xx1},#{xx2},#{xx3})
2. 复合索引