DELIMITER $$ Use ' Test ' $$ DROP PROCEDURE IF EXISTS ' pro_test_data_1 ' $$ CREATE definer= ' dev_user ' @ '% ' PROCEDURE ' pro_test_data_1 ' (pos_begin int,pos_end INT) BEGIN DECLARE i INT; SET I=pos_begin; SET autocommit=0; While I>=pos_begin && i<= pos_end do INSERT into Test. ' Uc_user_1 ' (' ID ', ' user_name ', ' user_pwd ', ' BIRTHDAY ', ' NAME ', ' User_icon ', ' SEX ', ' nickname ', ' S TAT ', ' user_mall ', ' last_login_date ', ' last_login_ip ', ' src_open_user_id ', ' EMAIL ', ' MOBILE ', ' Is_del ', ' Is_email_ ' Confirmed ', ' is_phone_confirmed ', ' creater ', ' create_date ', ' update_date ', ' pwd_intensity ', ' mobile_tgc ', ' MAC ', ' SOURCE ', ' ACTIVATE ', ' activate_type ', ' Is_life ') VALUES (i, ' admin ', ' 1ba613b3676a4a06d6204b407856f374 ', now (), ' super tube ', ' Group1/m00/03/bc/wki0d1qkfawahhewaaaoj58qocg271.jpg ', ' 1 ', ' admin2014 ', ' A ', ' 1 ', now (), ' 192.168.121.103 ', NULL, ', ' 10099990001 ', ' 0 ', ' 1 ', ' 0 ', null,null,null, ' 1 ', ' e5f10caa4ebb44c4b23726cbbd3ac413 ', ' 1-3 ', ' 0 ', ' 2 ', ' 2 ', ' 1 '); SET i=i + 1; # Next Judge 30W A group of times on Commit back. IF MOD (i,300000) <=0 Then Insert into Test.uc_log (id,msg) VALUES (i, ' begin to commmit a group insert SQL data. '); COMMIT; END IF; END while; end$$ DELIMITER; |