ITPub博客

首页 > 数据库 > Oracle > oracle文档中关于group by语句不保证排序正确的描述

oracle文档中关于group by语句不保证排序正确的描述

原创 Oracle 作者:OCMU联盟 时间:2009-03-12 12:05:20 0 删除 编辑
group_by_clause
Specify the GROUP BY clause if you want Oracle to group the selected rows based on the value of expr(s) for each row and return a single row of summary information for each group. If this clause contains CUBE or ROLLUP extensions, then Oracle produces superaggregate groupings in addition to the regular groupings.

Expressions in the GROUP BY clause can contain any columns of the tables, views, or materialized views in the FROM clause, regardless of whether the columns appear in the select list.

The GROUP BY clause groups rows but does not guarantee the order of the result set. To order the groupings, use the ORDER BY clause.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70034820/viewspace-2993721/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
OCM联盟( Oracle Certified Master Union)是由侯圣文(ACE总监)发起的一个公益组织,旨在为每一个OCM大师提供一个可以继续展示自己才华,技术和实力的平台。

注册时间:2007-05-27

  • 博文量
    799
  • 访问量
    8406993