mysql查询统计快与慢

2023-09-27T15:48:39

1、直接查询数据比较快
SELECT STATUS from table where STATUS='9' limit 10;

2、查询数据慢原因需要将int转换char类型
SELECT STATUS from table where STATUS=9 limit 10;

3、select cont(*) from table 和 select cont(1) from table 那个快呢?

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »