MySQL_SQL语句的加载顺序
1.引入 我们知道可以通过SQL语句操作这一个MySQL数据库。但是呢,当一条SQL语句执行的时候它是怎么样被加载的?下面我们一起来看一下SQL的加载顺序。 2.SQL的加载顺序。 (1).程序员编写的SQL语句 select distinct <select_list> from <left_table> <join_type> join <right_table> on <join_condition> where <where_condition> group by <group_by_list> having <having_condition> order by <order_by_condition> limit <limit_number> 那么,程序员编写的SQL的执行顺序无非就是按照我们的SQL编写习惯由上到下的执行(人认为的执行)。 (2).MySQL执行SQL语句的顺序 from <left_table> on <join_condition> <join_type> join <right_table> where <where_condition> group by <group_by_list> having <having_condition> select distinct <select_list> order by <order_by