mysql中的show variables可以用select语句实现相同的效果么?
状态表 select * from PERFORMANCE_SCHEMA.global_status 变量表 select * from PERFORMANCE_SCHEMA.global_variables
相同,只是show variables分全局和会话。
以及select可以带where条件进行分组。不是说show 不能用,只是不如select写的SQL方便。