I'm importing a CSV of sequential data into a MySQL database. Unfortunately, the sequential data isn't in sequence (for instance - a1, j10, k11, b2, c3, d4, e5, f6, g7, h8, i9).
As such, I don't want to add keys in the order that they currently are. I would want to order them, appropriately, and then add keys.
Now, I know that the order isn't that important. Humor me that I'm anal-retentive. This data should never change, so I'd like it to be sequential if sorted by the key column.
Is there a way to create a query and do all the key stuff at the same time?
This StackOverflow question showed me the code to add the column, but that wouldn't be in the right order.
What I would like to do is implement that into an ORDER BY query.