【发布时间】:2021-10-18 18:31:23
【问题描述】:
我试图在 MySQL 中多次运行以下命令。有没有像 TSQL/SQL Server for MySQL 中的 GO 命令这样简单的方法?
select
now(),
@@max_connections as "Max Connections",
count(host) as "Current Connections"
from information_schema.processlist;
想让演示保持简单。不是在寻找 SPROC。
【问题讨论】:
-
“多次”是什么意思?最简单的方法是编写存储过程。
-
我想为演示运行上述命令 100 次,并显示通过命令行实用程序运行的查询。
标签: mysql