当前位置:网站首页>使用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'); |
边栏推荐
- 火山引擎入选国内首个《边缘计算产业全景图》
- Redis (III) - transaction
- AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集
- Apache 解析漏洞(CVE-2017-15715)_漏洞复现
- Post office - post office issues (dynamic planning)
- Optimize with netcorebeauty Net core independent deployment directory structure
- Research on the principle of Tencent persistence framework mmkv
- Distributed machine learning: model average Ma and elastic average easgd (pyspark)
- 现在玩期货需要注意什么,在哪里开户比较安全,我第一次接触
- Redis (IV) - delete policy
猜你喜欢

MySQL advanced - basic index and seven joins

程序员女友给我做了一个疲劳驾驶检测

DeFi借贷协议机制对比:Euler、Compound、Aave和Rari Capital

The new Post-00 Software Test Engineer in 2022 is a champion

基于eNSP的校园网设计的仿真模拟

Mo Tianlun salon | Tsinghua qiaojialin: Apache iotdb, originated from Tsinghua, is building an open source ecological road

Tsinghua only ranks third? 2022 release of AI major ranking of Chinese Universities of soft science

助力极致体验,火山引擎边缘计算最佳实践

每日面试1题-如何防止CDN防护被绕过

Redis (V) - advanced data types
随机推荐
【义修换届大礼包】
vue3 响应式数据库—— reactive
What does software testing need to learn? Test learning outline sorting
Ardunio esp32 obtains real-time temperature and humidity in mqtt protocol (DH11)
大文件处理(上传,下载)思考
Only black-and-white box test is required for test opening post? No, but also learn performance test
Synchronized summary
MySQL reports that the column timestamp field cannot be null
Nft: unlimited possibilities to open the era of encryption Art
同济、阿里的CVPR 2022最佳学生论文奖研究了什么?这是一作的解读
Small tools (3) integration knife4j3.0.3 interface document
【云驻共创】Huawei iConnect使能物联终端一触即联
Small Tools(3) 集成Knife4j3.0.3接口文档
火山引擎入选国内首个《边缘计算产业全景图》
Talk about the SQL server version of DTM sub transaction barrier function
Redis (II) -- persistence
Design of online shopping mall based on SSH
腾讯云安装mysql数据库
剑指 Offer 16. 数值的整数次方
Dropout: immediate deactivation