当前位置:网站首页>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_%'
边栏推荐
- [nailing scenario capability package] enterprise and public institution intelligent access control
- ZABBIX foundation details
- 熊市指南|一些本质的教训与具体的生存法则
- Rounding related calculation
- Soft test intermediate simple notes
- [nailing scenario capability package] smart office phone
- Local Yum source production
- Windows11 windows security center cannot open Windows Defender cannot open
- Shell syntax
- Pat 1083 list grades (25 points)
猜你喜欢
Sqlmap for interface security testing
C language dynamic memory allocation
C language soul torture: do you know the difference between the two?
Invalid bound statement (not found): com. qf. mapper. PassengerMapper. findByPassengerId
Explain memcached principle in detail
STM32 self balancing robot project, with code, circuit diagram and other data attached at the end (learning materials and learning group at the end)
05 configuring network parameters
js (1)
HNU计网实验:实验一 应用协议与数据包分析实验(使用Wireshark)
js禁用浏览器 pdf 打印、下载功能(pdf.js 禁用打印下载、功能)
随机推荐
Illustration tcp/ip - Chapter 1 and 2 Notes
On ACM competition
The SH runtime directly reported an error syntax error near unexpected token ` $'. \r‘
org. apache. ibatis. exceptions. PersistenceException:
C language: array with length 0
XMIND to excel test case
Using two stacks to realize the function of one queue?
Is it safe for Xiaobai to open a stock account online?
Is it legal to open an account for flush stock trading software? Is it safe?
The correct way to clear the cache of the computer. The computer will not get stuck immediately after changing. practical
Free cloud function proxy IP pool just released
HNU计网实验:实验五 网络层与链路层协议分析(PacketTracer)
Jmeter- (IV) regular expression for interface testing
Weed FS stress test
Pytest assert encapsulation
js 限制鼠标移动范围
Illustration tcp/ip - Chapter 3 and 4 notes
Write a "standard" macro min, which inputs two parameters and returns the smaller one
If switch branch structure
Explain memcached principle in detail