当前位置:网站首页>使用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'); |
边栏推荐
- Servlet operation principle_ API details_ Advanced path of request response construction (servlet_2)
- Advanced embedded application of uni app [day14]
- Redis (VI) - master-slave replication
- 每日面试1题-蓝队基础面试题-应急响应(1)应急响应基本思路流程+Windows入侵排查思路
- [cloud resident co creation] Huawei iconnect enables IOT terminals to connect at one touch
- Hcip (Huawei Senior Network Security Engineer) (Experiment 8) (MPLS basic experiment)
- Apache parsing vulnerability (cve-2017-15715)_ Vulnerability recurrence
- MySQL advanced - index optimization (super detailed)
- Deep understanding of JVM (I) - memory structure (I)
- Apache 解析漏洞(CVE-2017-15715)_漏洞复现
猜你喜欢

Deep understanding of JVM (II) - memory structure (II)
![leetcode:787. The cheapest transfer flight in station K [k-step shortest path + DFS memory + defaultdict (dict)]](/img/28/78e2961877776ca3dfcba5ee7e35d2.png)
leetcode:787. The cheapest transfer flight in station K [k-step shortest path + DFS memory + defaultdict (dict)]

Another CVPR 2022 paper was accused of plagiarism, and Ping An insurance researchers sued IBM Zurich team

MIT science and Technology Review released the list of innovators under the age of 35 in 2022, including alphafold authors, etc

Redis (I) - data type

ASP. Net password encryption and password login

Daily interview 1 question - basic interview question of blue team - emergency response (1) basic idea process of emergency response +windows intrusion screening idea

Switching routing (VLAN) experiment

News management system based on SSM

MySQL reports that the column timestamp field cannot be null
随机推荐
剑指 Offer 16. 数值的整数次方
ASP. Net password encryption and password login
Redis (VII) - sentry
每日面试1题-蓝队基础面试题-应急响应(1)应急响应基本思路流程+Windows入侵排查思路
Rainbow Brackets 插件的快捷键
基于SSM的新闻管理系统
Several points in MySQL that are easy to ignore and forget
[software testing] basic knowledge of software testing you need to know
uni-app进阶之内嵌应用【day14】
NFT挖矿游GameFi链游系统开发搭建
后渗透之文件系统+上传下载文件
. Net ORM framework hisql practice - Chapter 1 - integrating hisql
抖音最新Xbogus,signature生成js逆向分析
Lenovo's "dual platform" operation and maintenance solution helps to comprehensively improve the intelligent management ability of the intelligent medical industry
Mo Tianlun salon | Tsinghua qiaojialin: Apache iotdb, originated from Tsinghua, is building an open source ecological road
[BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入
Force deduction solution summary 1175- prime number arrangement
DeFi借贷协议机制对比:Euler、Compound、Aave和Rari Capital
Babbitt | yuanuniverse daily must read: minors ask for a refund after a reward. The virtual anchor says he is a big wrongdoer. How do you think of this regulatory loophole
Apache parsing vulnerability (cve-2017-15715)_ Vulnerability recurrence