SQLite - sorting a table

后端 未结 3 1447
一个人的身影
一个人的身影 2021-01-12 07:15

I have a database in SQLlite and I\'d like to sort my table in an alphabetical order. How can I do it? Is there a way to sort entries using only SQLite or do I have first to

3条回答
  •  没有蜡笔的小新
    2021-01-12 07:51

    It is also worth emphasising that the order of data in any SQL database table, or retrieved from such using a query that does not include a order by clause, is not defined.

    In practice a straight read of a table without an order by will retrieve data in some fixed order and it's often the order of insert. However to rely on this is always an error, although one that is seen alarmingly often.

提交回复
热议问题