From 1894ac8dcb593b1fe09aab5eca65a9f0ea4d44c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BD=B3=E7=82=9C?= <626104790@qq.com> Date: Thu, 19 Oct 2023 11:38:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=81=E6=9C=88=E5=8D=81=E4=B9=9D=E5=8F=B7?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1019.md" | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 "25\351\231\210\344\275\263\347\202\234/1019.md" diff --git "a/25\351\231\210\344\275\263\347\202\234/1019.md" "b/25\351\231\210\344\275\263\347\202\234/1019.md" new file mode 100644 index 0000000..2c4638b --- /dev/null +++ "b/25\351\231\210\344\275\263\347\202\234/1019.md" @@ -0,0 +1,25 @@ + + +drop table a1; +CREATE database a2 charset utf8; + use a2; + CREATE TABLE a1( +id int PRIMARY KEY auto_increment, +name varchar(10), +phone varchar(20), +sex char(2), +hobby varchar(10) +); + + drop procedure if exists mylianxi; + delimiter // + CREATE procedure mylianxi() + BEGIN + declare i int default 1; + set i=1; + while i <= 10000000 DO + INSERT into a1(id,name,phone,sex,hobby) VALUES (null,CONCAT('大傻春',i),CONCAT('111000',i),'男','唱跳rap篮球'); + set i = i+1; + end while; + end // + call mylianxi(); \ No newline at end of file -- Gitee