当前位置:网站首页>mysql 通过sql 修改多表增加多个字段
mysql 通过sql 修改多表增加多个字段
2022-06-25 21:32:00 【后觉2022】
//设置当前sessin会话中 group_concat最大存储长度,默认1024
SET SESSION group_concat_max_len = 20240;
show variables like 'group_concat_max_len'
// 查询多表后,动态拼接alert语句
select group_concat('alter table ', table_schema, '.', table_name, ' add column test INT(10);' SEPARATOR "")
from information_schema.tables
WHERE TABLE_SCHEMA = 'db_vue_pro' and table_name not like 'act_%'
边栏推荐
- Understand two major web development patterns
- Differences between modems and routers (powercert animated videos)
- Openocd adds third-party device support: ht32f52352 Cortex-M0+
- Is Galaxy Securities reliable? Is it safe to open a securities account?
- Please enter an integer and output it as several digits, and output each digit in reverse order.
- QT method of exiting application (exe)
- Jmeter- (I) installation of interface test
- Win10 common software
- Canoe learning notes (1)
- JS__ This, arguments, cloning, ternary operator__ Duyi
猜你喜欢

UDP Vs TCP (Powercert animated videos)

Huawei switch stack configuration

Simulate ATM system (account opening, login, account query, withdrawal, deposit, transfer, password modification, account cancellation)

Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing Bing

"Developer theory" multi system integrated development - rapid nailing of enterprise owned systems

Differences between modems and routers (powercert animated videos)

On merging and sorting

InfiniBand& RDMA

On ACM competition

HNU计网实验:实验一 应用协议与数据包分析实验(使用Wireshark)
随机推荐
HNU计网实验:实验一 应用协议与数据包分析实验(使用Wireshark)
How testers write functional test cases
CANoe. Diva operation guide TP layer test
Weed FS stress test
Is flush app regular? Is it safe or not
Writing manuals using markdown
Write a "standard" macro min, which inputs two parameters and returns the smaller one
The difference between strcpy and memcpy
Send a more awesome website, which can convert curl commands into code in any language
Virtualenvwrapper solves the installation error, and virtualenvwrapper is permanently effective
Pat 1050 string subtraction (20 points) string find
ASP. Net core uses function switches to control Route Access (Continued) yyds dry inventory
Docker Alpine image installation PHP extension redis
[nail scenario capability package] hospital visitor verification
ThreadLocal class
Legal mix of settlements (utf8mb4_0900_ai_ci, implicit) and (utf8mb4_general_ci, implicit) error resolution
Is it safe for qiniu school to open a securities account?
Command 'GCC' failed with exit status 1 when PIP install mysqlclient
Winget: the "Winget" item cannot be recognized as the name of cmdlet, function, script file or runnable program. Win11 Winget cannot be used to solve this problem
Insert picture in markdown