序言

 

sql语句的执行顺序

查询时数据库中使用最多的操作,一条sql语句的查询顺序是

    1from Tb1 [ join on ]   得到查询的数据源

    2where         对数据过滤(单条数据上过滤)

    3group by                    对数据分组

    4having        筛选分组(在组别上进行过滤)

    5select distinct     获取结果集

    6order by      对结果集排序

 

相关文章:

  • 2021-06-24
  • 2021-06-10
  • 2021-11-04
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2021-08-01
  • 2021-10-25
  • 2022-12-23
相关资源
相似解决方案