DROP PROCEDURE if exists insertdata;
delimiter //
CREATE PROCEDURE insertdata()
begin
declare yourid BIGINT;
set yourid = 123460000000000001;
while yourid < 123460000000000321 do
insert into db_zone_role.tbl_role_buy_sweep(role_id) values (yourid);
set yourid=yourid+1;
end while;
end //
delimiter ;
call insertdata();