Does “group by” automatically guarantee “order by”?

后端 未结 6 1003
予麋鹿
予麋鹿 2021-02-12 16:51

Does \"group by\" clause automatically guarantee that the results will be ordered by that key? In other words, is it enough to write:

select * 
from table
group          


        
6条回答
  •  隐瞒了意图╮
    2021-02-12 17:33

    It depends on the number of records. When the records are less, Group by sorted automatically. When the records are more(more than 15) it required adding Order by clause

提交回复
热议问题