欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

mysql 中sql语句关键字的书写顺序与执行顺序

程序员文章站 2022-09-04 18:54:35
书写顺序: select -> from -> where -> group by -> having -> order by 执行顺序: from -> where -> group by -> having -> select -> order by ......

书写顺序:

select -> from -> where -> group by -> having -> order by

执行顺序:

from -> where -> group by -> having -> select -> order by