DROP PROCEDURE IF EXISTS proc_initData;
DELIMITER $
CREATE PROCEDURE proc_initData()
BEGIN
DECLARE i INT DEFAULT 1;
WHILE i<=1000 DO这里填你要插入的数据条数
INSERT INTO sm_storage_detail这里填写表名
(storage_head_id, location_id, location_no, location_name, material_id,
material_name,material_no, material_model, storage_num, storage_time, rfid1, rfid2, storage_status,
is_bad, create_time, package_volume)这里填写字段名VALUES
('1000', '100', '0-0', '0-0', '54', '砌块B07A5.0', 'JQZ200*240 B07A5.0', '600*200*240', 1 ,'2022-02-09 23:00:00',
concat("test1",i), concat("test2",i), 1, 1, '2022-02-09 23:00:00', '1.73m³')这里填写字段对应的值;
SET i = i+1;
END WHILE;
END $
CALL proc_initData();