当前位置:网站首页>Excel拼接数据库语句
Excel拼接数据库语句
2022-07-29 03:29:00 【哆啦A梦的口袋呀】
excel中有5列数据,分别是序号,编号,姓名,昵称,邮箱
想要拼接成数据库语句如下:
update users set `uid`=2,`name`="张三",`r_name`="李四",`email`="[email protected]" where id=1;
update语句在旁边输入函数如下,即可自动生成。
=CONCATENATE("update users set `uid`="&B2&",`name`="""&C2&""",`r_name`="""&D2&""",`email`="""&E2&""" where id="&A2&";")
其他语句同理,如insert语句:
=CONCATENATE("insert into users(`uid`,`name`,`r_name`,`email`) values("""&B3&""","""&C3&""","""&D3&""","""&E3&""");")
边栏推荐
- Implement Lmax disruptor queue from scratch (VI) analysis of the principle of disruptor solving pseudo sharing and consumers' elegant stopping
- 一种简单通用的获取函数栈空间大小的方法
- Sanzi chess (player + computer)
- (2022杭电多校三)1002-Boss Rush(状压DP+二分)
- Singleton mode (hungry and lazy)
- 最新二开版漫画小说听书三合一完整源码/整合免签接口/搭建教程/带采集接口
- Reproduce 20 character short domain name bypass and XSS related knowledge points
- Understanding of p-type problems, NP problems, NPC problems, and NP hard problems in natural computing
- Incremental real-time disaster recovery notes
- Introduction and advanced level of MySQL (11)
猜你喜欢

What is eplato cast by Plato farm on elephant swap? Why is there a high premium?

Configure vscade to realize ROS writing

深入C语言(1)——操作符与表达式

Multi level wavelet CNN for image restoration

Practical application cases of digital Twins - smart energy

AI_ Drug: VAE of molecular generation model (I)

Score addition and subtraction of force deduction and brushing questions (one question per day 7/27)

Arm architecture and neural network

Matlab learning -- structured programs and user-defined functions

Learn more than 4000 words, understand the problem of this pointing in JS, and handwrite to realize call, apply and bind
随机推荐
HDU multi School Game 2 1011 DOS card
Does domestic ERP have a chance to beat sap?
【科技1】
web-uploader不能多文件上传
Let's talk about the summary of single merchant function modules
Ten thousand words detailed Google play online application standard package format AAB
The difference between int and integer. Is int or integer used in practical applications?
Practical guidance for interface automation testing (Part I): what preparations should be made for interface automation
makefile详解
Summary of SAP localized content in China
KNN method predicts pregnancy, KNN principle simple code
How does DataGrid export and recover the entire database data, using a single SQL file
一种简单通用的获取函数栈空间大小的方法
机器学习【Numpy】
for_each用法示例
Code speed optimization
简历竟然敢写精通并发编程,那你说说AQS为什么要用双向链表?
1.6 example: cifar-10 classification
three.js 第五十四用如何给shader传递结构体数组
exness:鸽派决议帮助黄金反弹,焦点转向美国GDP