limit 0,1, 从你的表中的第0个数据开始,只读取一个;
我们再看下mysql解释sql语言时的执行顺序:
(7) select (8) distinct <select_list> (1) from <left_table> (3) <join_type> join <right_table> (2) on <join_condition> (4) where <where_condition> (5) group by <group_by_list> (6) having <having_condition> (9) order by <order_by_condition> (10) limit <limit_number>
在我们本文的案例sql中,执行顺序依次为form… where… select… order by… limit…