You cannot rely on ordering unless you specify order byin your SQL query. SQL is relational algebra that works with collections. These sets are unordered. Database tables do not have a built-in order.
It is possible that the sets are ordered because of how data is retrieved from the tables. This can be based on the primary key, insertion order, cluster key, apparently random order based on the query execution plan or the actual data in the table or even on the moon phase.
The bottom line, if you want to receive a specific order, use order by. If you don’t need a specific order, the DBMS can deliver your rows in any order for free, including on the basis of the first column.
, , , , . order by, . , , , , ( , /, , ).
( ), .