DELIMITER//
CREATE PROCEDURE liu1()
BEGIN
DECLARE i INT DEFAULT 0;
DECLARE username VARCHAR(20);
DECLARE email VARCHAR(30);
WHILE i<=10000 DO
SET username=CONCAT('admin',i);
SET email=CONCAT(username,'@163.com');
SET i=i+1;
INSERT INTO pw_members(uid,username,PASSWORD,safecv,email,groupid,memberid,groups,icon,gender,regdate,signature,introduce,oicq,aliww,icq,msn,yahoo,site,location,honor,bday,lastaddrst,yz,timedf,style,datefm,t_num,p_num,attach,hack,newpm,banpm,msggroups,medals,userstatus,shortcut)
VALUES('',username, 'e10adc3949ba59abbe56e057f20f883e', '', email, 3, 12, '', '', 0, 1337953224, '', '', '', '', '', '', '', '', '', '', '0000-00-00', '', 1, '', '', '', 0, 0, '', '0', 373, '', '', '', 192, '');
END WHILE;
END;//
DELIMITER//
SELECT username
INTO OUTFILE "c:\user.dat"
LINES TERMINATED BY "\r\n"
FROM pw_members;
网友评论