Answer the question
In order to leave comments, you need to log in
What might sequence be needed for?
I understand that there is no sequence in MySQL... but sometimes they give an alternative implementation with an additional table.
The question is why this implementation is needed?
Answer the question
In order to leave comments, you need to log in
1) sequence is convenient when you need a unique id not only in one table, but in several. If necessary, it can be arranged so that the id is not repeated in all tables.
2) a common sequence for several databases. Helps to merge two tables from different databases and all have a unique id
3) etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question