mysql性能限制X或限制0,X

时间:2016-09-27 13:51:09

标签: mysql

从以下哪个更好

select * , 98 as match_score from table_name order by match_score desc  limit Y

select *, 98 as match_score  from table_name  order by match_score desc limit 0,Y

1 个答案:

答案 0 :(得分:0)

LIMIT YLIMIT 0,Y的缩写,所以我没有看到任何获得性能的空间。