SQL语句伪代码:
selectdistinctselect _ listfromleft _ table join _ typejoinright _ tableonjoin _ conditionwherewhere _ conditiongroupbygry 在许多编程语言中,代码按编码顺序处理,但在SQL语言中,首先处理的子句是FROM子句,SELECT语句首先出现,但几乎总是在最后处理
SQL语句的执行顺序:
(1) fromleft_table(2) ON join_condition(3)3) join_type JOIN right_table(4)4) WHERE where_condition(5) LECT(8)8) DISTINCT select_list(9)9) order by order _ by _ condition (10 ) limitlimit_ )。