mysql 随机获取数据并插入到数据库中

insert into result (user_id, activity_id, number) select user_id, activity_id from `activity_record`  order by rand() LIMIT 20;

select * into 表A form 表B where条件;

posted @ 2018-11-28 10:34  泥土里的绽放  阅读(641)  评论(0编辑  收藏  举报