摘要:
使用MySQL慢查询日志对有效率问题的SQL进行监控 show variables like 'slow_query_log'; #查询慢日志是否开启 show variables like '%log%'; set global slow_query_log_file = '/home/mysql 阅读全文
摘要:
mysql关键字执行顺序 from > on > join > where > group by > having > select > distinct > union > order by sql语句优化 (1)使用limit对查询结果的记录进行限定(2)避免select *,将需要查找的字段列 阅读全文
摘要:
public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c) { return new UnmodifiableCollection<>(c);}返回指定映射的不可修改视图。此方法允许模块为用户提供 阅读全文