一、首先使用下面的语句,不断的复制表数据,让表的数量达到你的测试需求
insert into user(activity_id,msisdn,nickname,head_img,luck_code,insert_time)
select activity_id,msisdn,nickname,head_img,luck_code,insert_time from user;
二、使用下面语句随机获得指定数量的数据
SELECT msisdn,nickname,head_img,luck_code FROM user WHERE activity_id = 'a' order by rand() limit 1000
注意:当前语句是全表扫描,如果数据量超过一万请慎用