11.8.2 CONNECTION_ID()函数
CONNECTION_ID()函数返回当前MySQL服务器的连接数。使用示例如下:
mysql> SELECT CONNECTION_ID();
+-----------------+
| CONNECTION_ID() |
+-----------------+
| 8 |
+-----------------+
1 row in set (0.01 sec)
CONNECTION_ID()函数返回当前MySQL服务器的连接数。使用示例如下:
mysql> SELECT CONNECTION_ID();
+-----------------+
| CONNECTION_ID() |
+-----------------+
| 8 |
+-----------------+
1 row in set (0.01 sec)