Sort Order of results for Select WITHOUT WHERE or ORDER BY Clause

前端 未结 2 681
死守一世寂寞
死守一世寂寞 2020-12-21 01:32

I have a table with a PK clustered index as well as other indexes on it, both unique and non-unique. If I issue (exactly):

SELECT * FROM table_name
<         


        
2条回答
  •  太阳男子
    2020-12-21 01:50

    The instructions speak to SQL at a conceptual level, at which the result of a query is a relationship, and relationships are unordered. Moving from the conceptual to the actual, the reason no implicit ordering is defined in the SQL standard is so RDBMSs are free to return whatever order is most efficient for their implementation.

提交回复
热议问题