Mysql> DELIMITER $$ mysql> use ' Test ' $$ Database changed mysql> DROP PROCEDURE IF EXISTS test. ' Pro_test_data ' $$ Query OK, 0 rows Affected (0.00 sec) mysql> CREATE PROCEDURE test. ' Pro_test_data ' (pos_begin int,pos_end INT) BEGIN -DECLARE i INT; SET I=pos_begin; While I>=pos_begin && i<= pos_end do - Display all 1421 possibilities? (Y or N) INSERT into Test. ' Uc_user ' (' ID ', ' user_name ', ' user_pwd ', ' BIRTHDAY ', ' NAME ', ' User_icon ', ' SEX ', ' nickname ', ' STAT ', ' 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 '); - - Display all 1421 possibilities? (Y or N) SET i=i + 1; and END while; end$$ Query OK, 0 rows Affected (0.00 sec) Mysql> DELIMITER; Mysql> |