mysql中的查询和问题有什么区别

时间:2012-05-22 12:34:01

标签: mysql variables status

我想知道mysql中以下两个值之间的区别。

show status like 'queries' ;
+---------------+-------------+
| Variable_name | Value       |
+---------------+-------------+
| Queries       | 16987383643 |
+---------------+-------------+
1 row in set (0.00 sec)

mysql> show status like 'Questions' ;
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| Questions     | 5     |
+---------------+-------+
1 row in set (0.00 sec)

1 个答案:

答案 0 :(得分:3)

尝试查看手册?

  

与Queries变量不同。此[Questions]变量不计算COM_PING,COM_STATISTICS,COM_STMT_PREPARE,COM_STMT_CLOSE或COM_STMT_RESET命令。