当前位置:网站首页>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_%'
边栏推荐
- Send a more awesome website, which can convert curl commands into code in any language
- HNU计网实验:实验四 应用层和传输层协议分析(PacketTracer)
- UDP Vs TCP (Powercert animated videos)
- “No bean named ‘UserController‘ available“
- Canoe learning notes (2)
- JS limit mouse movement range
- The correct way to clear the cache of the computer. The computer will not get stuck immediately after changing. practical
- HNU数据库系统概论 ODBC
- Is it safe for Xiaobai to open a stock account online?
- Win10 common software
猜你喜欢

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

Soft test intermediate simple notes
![[nailing scenario capability package] enterprise and public institution intelligent access control](/img/0e/43433ca5586c48d01708e5fa39a808.jpg)
[nailing scenario capability package] enterprise and public institution intelligent access control

109 practical shell scripts

org. apache. ibatis. exceptions. PersistenceException:

Circular structure and circular keywords

How to solve the problem of flash write protection in STM32?
![[nail scenario capability package] hospital visitor verification](/img/0e/43433ca5586c48d01708e5fa39a808.jpg)
[nail scenario capability package] hospital visitor verification

Win11开始菜单右键空白?Win11开始菜单右键没反应解决方法
![[nailing scenario capability package] ranking of enterprise employees' points](/img/f5/ed5bd90706ef166c3758bc03ab32bc.jpg)
[nailing scenario capability package] ranking of enterprise employees' points
随机推荐
Pat 1050 string subtraction (20 points) string find
数学分析_笔记_第4章:连续函数类和其他函数类
Big end and small end
HNU数据库系统概论 ODBC
[nailing - scenario capability package] nailer card
org. apache. ibatis. exceptions. PersistenceException:
Illustration tcp/ip - Chapter 1 and 2 Notes
Win11录屏数据保存在哪里?Win11录屏数据保存的位置
[nailing scenario capability package] manage the on-the-job / off-the-job situation of employees
Local Yum source production
启牛学堂证券开户安全嘛?
Volatile qualifier
Sqlmap for interface security testing
IAAs, PAAS, SaaS, baas, FAAS differences
Modprobe: fatal: module kvmgt not found, kvmgt has no module, kvmgt has no driver, gvt-g precautions, gvt-g precautions for starting win10 in UEFI mode
Common singleton functions traverse dictionary functions
InfiniBand& RDMA
Alicloud disk mounted locally
24 张图一次性说清楚 TCP
Illustration tcp/ip - Chapter 3 and 4 notes