手写顺序:select+from -->join…on–>where -->group by+ having—>order by–>limit
机读顺序:
A.from是告诉你从哪张表读取,所以要先join…on
B.where 后面的顺序还是按照 where+[group…by+having]+order by+limit
C.select 位于group by 和order by 中间
相关文章:
手写顺序:select+from -->join…on–>where -->group by+ having—>order by–>limit
机读顺序:
A.from是告诉你从哪张表读取,所以要先join…on
B.where 后面的顺序还是按照 where+[group…by+having]+order by+limit
C.select 位于group by 和order by 中间
相关文章: