想把A表里面数据打乱进行随机排序 A表id主键自增 我新建了一个B表 A、B两个表结构一模一样 想把A表里面的数据插入到B表里面时打乱排序 下面这样试了一下为什么顺序没有乱?还是跟A表里面的一模一样
insert into B select * from A order by rand();
知道了 B表id字段不能是主键自增
2.1m questions
2.1m answers
63 comments
56.5k users