当前位置:网站首页>1.3 mysql批量插入数据
1.3 mysql批量插入数据
2022-08-05 05:05:00 【LetsStudy】
DROP PROCEDURE
IF EXISTS test_data;
DELIMITER $$ //定界符
CREATE PROCEDURE test_data()
BEGIN
-- 定义变量
DECLARE i INT UNSIGNED DEFAULT 1; -- 定义变量i默认值
-- 循环次数
WHILE i <= 1000 DO -- 循环
INSERT INTO testdata_check(id,crawl_cfg_id,detection_type,crawl_file_info_id,task_instance_id,crawl_content) VALUES(CONCAT('17ac3e7419954b63878157491a4e8d42',i),'2','5',null,'1f9d7b13c0174dc0aa52f00a53014acf','{"url": "http://www.beijing.gov.cn/shipin/Interviewlive/558.html", "title": "北京市新型冠状病毒肺炎疫情防控工作新闻发布会(第253场)", "author": "", "domain": "beijing.gov.cn", "islist": "False", "content": "Reset
restore all settings to the default values", "send_time": "2022-07-29 17:32:52", "create_time": "2022-07-29 17:32:52", "islist_code": 0.1447209933229973, "publish_time": "2021-11-01"}');
SET i = i+1; -- 更新i的值
END WHILE; -- 结束循环
END $$
--
CALL test_data();
边栏推荐
猜你喜欢
There are a lot of 4T hard drives remaining, prompting "No space left on device" insufficient disk space
for..in和for..of的区别
【cesium】元素高亮显示
【学生毕业设计】基于web学生信息管理系统网站的设计与实现(13个页面)
算法---一和零(Kotlin)
how to measure distance from point to face in creo
基于Web的商城后台管理系统的设计与实现
write the story about us
Flutter学习5-集成-打包-发布
flex布局青蛙游戏通关攻略
随机推荐
How to quickly upgrade your Taobao account to a higher level
UVA10827
动力小帆船制作方法简单,电动小帆船制作方法
作业8.4 进程间的通信 管道与信号
Visibility of multi-column attribute column elements: display, visibility, opacity, vertical alignment: vertical-align, z-index The larger it is, the more it will be displayed on the upper layer
How to identify false evidence and evidence?
Talk about 20 common problems in data governance
密码学系列之:PEM和PKCS7,PKCS8,PKCS12
【软考 系统架构设计师】软件架构设计③ 特定领域软件架构(DSSA)
App快速开发建设心得:小程序+自定义插件的重要性
Why did you start preparing for the soft exam just after the PMP exam?
write the story about us
The difference between span tag and p
C++ core programming
MySQL基础(一)---基础认知及操作
Excel画图
dedecms后台生成提示读取频道信息失败的解决方法
u-boot中的u-boot,dm-pre-reloc
Flutter learning three-Flutter basic structure and principle
[cesium] element highlighting