当前位置:网站首页>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();
边栏推荐
- 数字孪生技术在电力系统中的应用现状
- Talk about 20 common problems in data governance
- Requests库部署与常用函数讲解
- The log causes these pits in the thread block, you have to guard against
- MySQL Foundation (1) - Basic Cognition and Operation
- 社区分享|腾讯海外游戏基于JumpServer构建游戏安全运营能力
- C语言-大白话理解原码,反码和补码
- 浅析主流跨端技术方案
- 「PHP8入门指南」PHP简明介绍
- 判断语句_switch与case
猜你喜欢

使用二维码解决固定资产管理的难题

Redis哨兵模式配置文件详解

Flutter学习三-Flutter基本结构和原理

动力小帆船制作方法简单,电动小帆船制作方法

"Recursion" recursion concept and typical examples

逆向理论知识4

The log causes these pits in the thread block, you have to guard against

Application status of digital twin technology in power system

Flex layout frog game clearance strategy

creo怎么测量点到面的距离
随机推荐
Redis哨兵模式配置文件详解
How to deal with DNS hijacking?
狗仔队:表面编辑多视点图像处理
Flutter learning 5-integration-packaging-publish
upload upload pictures to Tencent cloud, how to upload pictures
数字_获取指定位数的小数
[Surveying] Quick Summary - Excerpt from Gaoshu Gang
human weakness
After controlling the export file in MySQL, it becomes \N. Is there any solution?
jvm 三 之堆与栈
creo怎么测量点到面的距离
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
Excel Paint
Develop a highly fault-tolerant distributed system
8.04 Day35-----MVC three-tier architecture
【cesium】加载并定位 3D Tileset
JeeSite New Report
u-boot中的u-boot,dm-pre-reloc
Homework 8.4 Interprocess Communication Pipes and Signals
Reverse theory knowledge 4