摘要: 查询线程及相关信息 show full processlist 修改慢查询的设置时间为6秒 set long_query_time=6 显示当前慢查询设置的时间 show variables like 'long_query_time' 查看查询时间超过long_query_time秒的查询的个数 阅读全文
posted @ 2020-10-16 17:06 金虹巴巴 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 综合使用 查询 目录: # 综合使用 书写顺序 select distinct * from '表名' where '限制条件' group by '分组依据' having '过滤条件' order by limit '展示条数' 执行顺序 from -- 查询 where -- 限制条件 gro 阅读全文
posted @ 2020-10-16 16:42 金虹巴巴 阅读(627) 评论(0) 推荐(0) 编辑