MySql批量插入测试数据

MySql插入10万条数据
BEGIN
	declare i int;
    set i=3;
    while i<100000 do
        insert INTO 	  tt_order(`order_num`,`vehicle_driver_id`,`route_line_id`,`member_id`,`order_source_dictid`,`order_status_dictid`,`reservation_location`,`reservation_location_lon`,`reservation_location_lat`,`member_num`,`destination_`,`destination_lon`,`destination_lat`,`budget_amount`,`order_total_amount`,`paid_amount`,`coupon_deduction`,`extra_charge`,`out_of_range`,`out_of_range_amount`,`backstage_member_name`,`backstage_member_tel`,`create_by`,`create_time`,`update_by`,`update_time`,`enable_`,`remark_`) 
        values(i,i,i,i,1,1,'鞍山','1','2',i,'沈阳','1','2',222,2221,11,1,1,33,44,'张','136',2010,'2018-08-21 00:00:00',2010,'2018-08-21 00:00:00',1,'2018-08-21 00:00:00');
        set i=i+1;
     end while;

END

你可能感兴趣的:(MySql)