存储过程,循环插入1000条记录_MySQL
来源:懂视网
责编:小采
时间:2020-11-09 19:33:18
存储过程,循环插入1000条记录_MySQL
存储过程,循环插入1000条记录_MySQL:PS::今天巴西又被虐了,做梦以为是3:1,醒来是3:0mysql> delimiter $$mysql> create procedure p3() -> MODIFIES SQL DATA -> BEGIN -> set @i=0; -> set @max=100; -> while @i insert into user value
导读存储过程,循环插入1000条记录_MySQL:PS::今天巴西又被虐了,做梦以为是3:1,醒来是3:0mysql> delimiter $$mysql> create procedure p3() -> MODIFIES SQL DATA -> BEGIN -> set @i=0; -> set @max=100; -> while @i insert into user value
PS::今天巴西又被虐了,做梦以为是3:1,醒来是3:0
mysql> delimiter $$mysql> create procedure p3() -> MODIFIES SQL DATA -> BEGIN -> set @i=0; -> set @max=100; -> while @i<@max do -> insert into user values (@i); -> set @i = @i + 1; -> end while; -> end $$
声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
存储过程,循环插入1000条记录_MySQL
存储过程,循环插入1000条记录_MySQL:PS::今天巴西又被虐了,做梦以为是3:1,醒来是3:0mysql> delimiter $$mysql> create procedure p3() -> MODIFIES SQL DATA -> BEGIN -> set @i=0; -> set @max=100; -> while @i insert into user value