当前位置:网站首页>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();
边栏推荐
猜你喜欢
How to identify false evidence and evidence?

u-boot调试定位手段

flex布局青蛙游戏通关攻略

Homework 8.4 Interprocess Communication Pipes and Signals

There are a lot of 4T hard drives remaining, prompting "No space left on device" insufficient disk space
![[cesium] 3D Tileset model is loaded and associated with the model tree](/img/03/50b7394f33118c9ca1fbf31b737b1a.png)
[cesium] 3D Tileset model is loaded and associated with the model tree

App快速开发建设心得:小程序+自定义插件的重要性

C++ core programming

About the installation of sklearn library

Flutter真机运行及模拟器运行
随机推荐
How to quickly upgrade your Taobao account to a higher level
Day019 方法重写与相关类的介绍
The log causes these pits in the thread block, you have to guard against
About the installation of sklearn library
After controlling the export file in MySQL, it becomes \N. Is there any solution?
UVA10827
How does the Flutter TapGestureRecognizer work
【cesium】3D Tileset 模型加载并与模型树关联
University Physics---Particle Kinematics
Mini Program_Dynamic setting of tabBar theme skin
Homework 8.4 Interprocess Communication Pipes and Signals
UVA10827
dedecms error The each() function is deprecated
The difference between span tag and p
C#关于set()和get()方法的理解及使用
数字孪生技术在电力系统中的应用现状
Dephi逆向工具Dede导出函数名MAP导入到IDA中
Use IDEA to connect to TDengine server
C语言-大白话理解原码,反码和补码
Excel Paint