当前位置:网站首页>存储过程和for循环插入数据
存储过程和for循环插入数据
2022-07-20 03:39:00 【学习微站】
#删除存储过程
drop procedure callback
#设置存储过程
create procedure callback()
begin
declare num int;
set num = 100;
while
num < 300 DO
insert into test-demo
(merchant_id, shop_name, remark)
values(concat(num), concat(“shop_name”, num), concat(“remark”, num));
set num = num + 1;
end while;
end;
#执行存储过程
call callback();
边栏推荐
- 06.02 二叉树遍历
- Harbor high availability cluster design and deployment (offline installation, including video)
- Leetcode sword finger offer 11 Rotate the minimum number of the array
- 网络原理之协议详解
- MySQL 索引
- Clé
- DP knapsack problem
- SQL Server 2008 R2 卸载失败
- scala Breaks.break()、Breaks.breakable()、控制抽象
- Wave field joint reserve issued an open letter, emphasizing that usdd is not subject to any centralized institutions
猜你喜欢
RedHat 7 network service cannot start. The problem ("device does not see to be present, delaying initialization") is handled
【无标题】
【培训课程专用】cpu_context的初始化以切换
【已解决】org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[localhost]
SQL Server 2008 R2 卸载失败
PHP advanced iterator and generator yield & MySQL how to send data results
Use regular expressions to bypass
分享一个好玩的JS小游戏
【C语言进阶】---- 自定义类型详解
归并排序针对性刷题
随机推荐
Restore the password parameter of a website login interface
leetcode 剑指 Offer 32 - I. 从上到下打印二叉树
Merge and sort targeted questions
How to create a plug-in for QML through cmake
leetcode 剑指 Offer 26. 树的子结构
【Pygame 学习笔记】8.精灵
Shengteng AI innovation competition | Shengsi track live training, the guide for obtaining up to 10million bonuses is coming
An interesting example to illustrate the difference of emplace_back() and push_back()
ROS (sub, pub) test plotjuggler
C language implements tree traversal to find the precursor of the specified node
Regular expression tutorial notes
Chromeoptions common configuration and webui practice
使用ECS和OSS搭建个人网盘
网络与VPC之动手实验
5G时代到来,VR全景制作是值得创业的行业
35-【go】Golang的反射
vscode setting
DenseNet学习笔记(核心与resnet进行对比):
MySQL C语言连接
C language binary tree + queue to realize hierarchical traversal