@ Cornelius: for the database engine, there is no way to know the difference between the first and the last. Your so-called sequence may be based on the time when the record is inserted. In this case, I usually have a dedicated field to save the creation time. Some people sorted by auto-incremental ID before, but when I grew up, I found that it was Tooyoungtoosimple. Because
@ Cornelius: for the database engine, there is no way to know the difference between the first and the last. Your so-called sequence may be based on the time when the record is inserted. In this case, I usually have a dedicated field to save the creation time. Some people sorted by auto-increment ID before, but when I grew up, I found that it was also Too young too simple. Because
@ Cornelius: for the database engine, there is no way to know the difference between the first and the last.
Your so-called sequence may be based on the time when the record is inserted. In this case, I usually have a dedicated field to save the creation time,
In the past, some people sorted by auto-incremental ID, but when I grew up, I found that it was also Too young too simple. Since the auto-increment ID reaches the maximum value, the database engine extracts unused values as IDS, so this is not an insurance.
In short, do not take it for granted that a computer is not a person, even a person. By default, there is a field, that is, the so-called sequence,
The database engine must have a hidden field (you can't see it,
Modern database engines think that data is disordered. Do you need to order it? Please design a field to save it. Thank you!