discuz论坛批量插入会员程序
declare num int;
declare charName char(10);
declare charEmail char(20);
set num=3;
while num < 20 do
set charName=CONCAT(‘a3545‘,num);
set charEmail=CONCAT(‘a3545‘,num,‘@qq.com‘);
insert into pre_common_member values(num,charName,charEmail,‘5f591898edd5d9c4e377a45c2f7f5574‘,0,0,0,0,1,1,0,‘‘,1417239460,2,0,‘‘,0,0,0,1,0,0,0);
insert into pre_ucenter_members value(num,charName,‘5f591898edd5d9c4e377a45c2f7f5574‘,charEmail,‘‘,‘‘,‘hidden‘,1417239444,0,0,‘447c25‘,‘‘);
insert into pre_ucenter_memberfields VALUES(num,‘‘);
insert into pre_common_member_status value(num,‘‘,‘::1‘,50620,1417241419,1417239531,0,0,0,0,0,0,0,0);
insert into pre_common_member_profile value(num,‘‘,0,0,0,0,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘);
insert into pre_common_member_field_forum values(num,0,26,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘);
insert into pre_common_member_field_home values(num,‘‘,‘‘,‘‘,‘‘,0,0,0,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘);
insert into pre_common_member_count values(num,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
set num=num+1;
end while;
COMMIT;
end
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。