I bring in a record database. And for some reason they are not recorded in order. And the output from the database is not in order. I did the sorting by ID for correct output, but still interesting.
Table structure
Entries in the table
.
According to the theory of relational databases, there is no default order in the tables. The order is set by sorting in the output (query) to the table. If sorting is not specified, the order of output is determined by the primary key.
Source: https://ru.stackoverflow.com/questions/240465/
All Articles