mysql利用存储过程批量插入
mysql批量插入存储函数
DROP PROCEDURE test_insert ;
DELIMITER $$
CREATE PROCEDURE test_insert()
BEGIN
DECLARE v_deviceid VARCHAR(2000) DEFAULT '';
DECLARE i tinyint DEFAULT '1';
WHILE i<99999
DO
SET v_deviceid = round(round(rand(),4)*10000);
INSERT INTO `de
原创
2020-06-16 18:09:27 ·
202 阅读 ·
0 评论