当前位置:网站首页>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_%'
边栏推荐
- Data query of server SQL. The most important chapter in database learning
- Free cloud function proxy IP pool just released
- Soft test intermediate simple notes
- VFS appears when mounting a file system from an SD card: cannot open root device "mmcblk1p2“
- Shell syntax
- 银河证券靠谱吗?开证券账户安全吗?
- The robotframework executes JS commands to move the mouse from X to y
- Apache uses setenvif to identify and release the CDN traffic according to the request header, intercept the DDoS traffic, pay attention to the security issues during CDN deployment, and bypass the CDN
- Virtualenvwrapper solves the installation error, and virtualenvwrapper is permanently effective
- js禁用浏览器 pdf 打印、下载功能(pdf.js 禁用打印下载、功能)
猜你喜欢
![[nailing scenario capability package] exhibition admission](/img/a1/5900ad0d3c89f21da3a2d96c91943a.jpg)
[nailing scenario capability package] exhibition admission

Canoe learning notes (4)

InfiniBand& RDMA

C language dynamic memory allocation
![[nail scenario capability package] hospital visitor verification](/img/0e/43433ca5586c48d01708e5fa39a808.jpg)
[nail scenario capability package] hospital visitor verification

IAAs, PAAS, SaaS, baas, FAAS differences
![[nailing - scenario capability package] nailer card](/img/ec/c2f342a54ab69d8b834a8a1c8f8a01.jpg)
[nailing - scenario capability package] nailer card

Huawei switch stack configuration

Understand two major web development patterns

STM32 self balancing robot project, with code, circuit diagram and other data attached at the end (learning materials and learning group at the end)
随机推荐
数字图像处理知识点总结概述
STM32 self balancing robot project, with code, circuit diagram and other data attached at the end (learning materials and learning group at the end)
MySQL trigger
Kubernetes related knowledge - surprise interview
“No bean named ‘UserController‘ available“
Q5 s905l firmware version 202109
Summary of several methods for FPS calculation
银河证券靠谱吗?开证券账户安全吗?
IPv4 and IPv6 (powercert animated videos)
Common singleton functions traverse dictionary functions
Win11开始菜单右键空白?Win11开始菜单右键没反应解决方法
IAAs, PAAS, SaaS, baas, FAAS differences
Shell syntax
OLED driven learning based on ssd1306 (II): addressing mode of ssd1306
The robot framework calls the JS interface and gets the return value
OSI notes sorting
Type conversion basis
Soft test intermediate simple notes
Get parameters in URL
Please enter an integer and output it as several digits, and output each digit in reverse order.