当前位置:网站首页>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&""");")
边栏推荐
- 军品研制过程-转阶段
- (2022杭电多校三)1002-Boss Rush(状压DP+二分)
- HDU多校第二场 1011 DOS Card
- 【C】 Array
- Mathematical modeling -- analytic hierarchy process model
- RTP 发送 和接收 h265
- JS regular expression finds the number of times a character (string) appears (one line of code)
- Example analysis of while, repeat and loop loops in MySQL process control
- Microcomputer principle operation
- AI platform, AI midrange architecture
猜你喜欢

Asynchronous callback future mode of concurrent mode

for_each用法示例

Rongyun IM & RTC capabilities on new sites

Sleuth+Zipkin 来进行分布式服务链路的追踪

The Federal Reserve raised interest rates again, Powell "let go of doves" at 75 basis points, and US stocks reveled

Ten thousand words detailed Google play online application standard package format AAB

2022-07-28 study notes of group 4 self-cultivation class (every day)

Violence recursion to dynamic programming 01 (robot movement)

Mathematical modeling -- analytic hierarchy process model

July 28, 2022 Gu Yujia's study notes
随机推荐
Introduction and advanced level of MySQL (11)
Machine learning [numpy]
Anaconda offline installation environment
Self study notes on Apache file management -- mapping folders and configuring Apache virtual machines based on single IP and multi domain names
Calculation of array serial number of force deduction questions (daily question 7/28)
three.js 第五十四用如何给shader传递结构体数组
Introduction and advanced MySQL (XIV)
Practical application cases of digital Twins - smart energy
GJB common confused concepts
Reproduce 20 character short domain name bypass and XSS related knowledge points
A case of gradually analyzing the splitting of classes -- colorful ball collisions
Target detection, industrial defects, image segmentation -- deep learning data set induction
Design of smoke temperature, humidity and formaldehyde monitoring based on single chip microcomputer
VISO fast rendering convolution block
Notes on letter symbol marking of papers
基于单片机烟雾温湿度甲醛监测设计
Simple understanding of Poe and UPS Technology
暴力递归到动态规划 01 (机器人移动)
How does DataGrid export and recover the entire database data, using a single SQL file
Rongyun IM & RTC capabilities on new sites