SQL row return order

后端 未结 5 1581
失恋的感觉
失恋的感觉 2020-12-11 03:46

I have only used SQL rarely until recently when I began using it daily. I notice that if no \"order by\" clause is used:

  1. When selecting part of a table the row
5条回答
  •  时光说笑
    2020-12-11 04:21

    If no ORDER BY clause is included in the query, the returned order of rows is undefined.

    Whilst some RDBMSes will return rows in specific orders in some situations even when an ORDER BY clause is omitted, such behaviour should never be relied upon.

提交回复
热议问题