Why does SQL Server 2008 order when using a GROUP BY and no order has been specified?

后端 未结 4 716
无人共我
无人共我 2021-01-06 05:23

I\'m running into a very strange issue that I have found no explanation for yet. With SQL Server 2008 and using the GROUP BY it is ordering my columns without any ORDER BY s

4条回答
  •  死守一世寂寞
    2021-01-06 06:10

    You can clean up your insert statements as well here. SQL server 2008 added a new feature for inserts. Example:

    Inert into tbl ( clmn ) Values ( 1 ), ( 2 ), ( 3 ) Each record doesn't need it's own insert statement and each is separated by a coma.

提交回复
热议问题