jiuye9999
jiuye9999
mysql sql: insert into `bdf_teacher` (`teacher_name`, `class_id`) values (#{teacherName}, #{classId})
How can this problem be solved : sharding jdbc, when insert config useGeneratedKeys , in one Transactional , the ID obtained by batch insertion is the first one !
I had the same problem version: 5.1.1 insert into `bdf_teacher` (`teacher_name`, `class_id`) values (#{teacherName}, #{classId})
> > You can try 4.1.1 > > But these cases(multi-values and/or batch) are complex for generated keys, and now haven't completely resolved in master/5.x yet. > > > >...