当前位置:网站首页>使用excel快速生成sql语句
使用excel快速生成sql语句
2022-06-30 16:57:00 【折扇掩笑颜】
数据表:
| id | name | age | sex | class |
|---|---|---|---|---|
| 1 | 张三 | 18 | 1 | 2 |
| 2 | 李四 | 19 | 2 | 3 |
SQL:
INSERT INTO student (name,age,sex,class) values('张三',18,2,4);
批量生成SQL
="INSERT INTO student (name,age,sex,class) VALUES('"&B2&"','"&C2&"','"&D2&"','"&E2&"');"| 1 | 张三 | 18 | 1 | 1 | INSERT INTO student (name,age,sex,class) VALUES('张三','18','1','1'); |
| 2 | 李四 | 19 | 1 | 1 | INSERT INTO student (name,age,sex,class) VALUES('李四','19','1','1'); |
| 3 | 王五 | 20 | 1 | 2 | INSERT INTO student (name,age,sex,class) VALUES('王五','20','1','2'); |
| 4 | 赵六 | 21 | 2 | 3 | INSERT INTO student (name,age,sex,class) VALUES('赵六','21','2','3'); |
边栏推荐
- LRN local response normalization
- 港科大&MSRA新研究:关于图像到图像转换,Finetuning is all you need
- Deep understanding of JVM (VI) -- garbage collection (III)
- 基于SSH的网上商城设计
- ABAP publish restful service
- 【义修换届大礼包】
- 【机器学习】K-means聚类分析
- Oneortwo bugs in "software testing" are small things, but security vulnerabilities are big things. We must pay attention to them
- Design and principle of tubes responsive data system
- VS code 树视图 treeView
猜你喜欢

MySQL advanced - basic index and seven joins

剑指 Offer 16. 数值的整数次方

Optimize with netcorebeauty Net core independent deployment directory structure

Small Tools(3) 集成Knife4j3.0.3接口文档

ASP. Net generate verification code

Add code block in word (Reprint)

Small tools (3) integration knife4j3.0.3 interface document

C# Winform程序界面优化实例

Hcip (Huawei Senior Network Security Engineer) (Experiment 8) (MPLS basic experiment)

Redis (VIII) - enterprise level solution (I)
随机推荐
Add code block in word (Reprint)
Do you write API documents or code first?
LeetCode之合并二叉树
Simulation of campus network design based on ENSP
漏洞复现----37、Apache Unomi 远程代码执行漏洞 (CVE-2020-13942)
TCP session hijacking based on hunt1.5
Flink series: checkpoint tuning
[machine learning] K-means clustering analysis
News management system based on SSM
Development details of NFT casting trading platform
vue3 响应式数据库—— reactive
Post MSF infiltration summary
What did Tongji and Ali study in the CVPR 2022 best student thesis award? This is an interpretation of yizuo
Ardunio esp32 obtains real-time temperature and humidity in mqtt protocol (DH11)
【二叉树】前序遍历构造二叉搜索树
Helping the ultimate experience, best practice of volcano engine edge computing
AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集
uni-app进阶之自定义【day13】
Customer relationship CRM management system based on SSH
基于SSH的网上商城设计