您的位置: 首页 > IT文章 > mysql优化相关 mysql优化相关 分类: IT文章 • 2022-03-26 16:14:18 mysql 可以使用field函数进行自定义排序 格式为:select * from table order by field(str1,str2,str3,str4); 查看一条sql语句实际使用时间 set profiling=1; show profiles; show profile;show profile for query 3; #查看第三条sql语句的具体执行情况