The SQlite database has a table persons:
The id column is filled from an external file, the key column is auto-incremented.
After filling the table, you need to order the data in the id column according to the data in the key column:
There can be several thousand records in a table.
What is the most efficient way to do this?
| id | key |
| @1@ | 1 |
| @3@ | 2 |
| @4@ | 3 |
The id column is filled from an external file, the key column is auto-incremented.
After filling the table, you need to order the data in the id column according to the data in the key column:
| id | key |
| @1@ | 1 |
| @2@ | 2 |
| @3@ | 3 |
There can be several thousand records in a table.
What is the most efficient way to do this?
Last edited: