1 先建立一张表,比如
2 点击 函数 新建一个函数;要选上边的那个
设置参数
3
BEGIN
declare num int;
set num=1;
while num < 1000000 do
insert into t_tag(tag_name, tag_desc) values(concat("tag", num), concat("tag", num)); set num=num+1;
end while;#Routine body goes here...
END
保存为gaga(名字可以随意去取)
代码敲进去 执行一下 ,提示叫你设参数num初始设置为1就可以。OK很容易吧。