The documentation page for INSERT ... SELECT states that for INSERT ... SELECT
to work with replication, an ORDER BY
some column must be used so that rows may be inserted in a predictable order, therefore auto-increment columns will function correctly.
This has me wondering... when you do an ORDER BY
and the column you pick is non-unique, what does MySQL use to decide further ordering? It must be deterministic, otherwise the documentation would say that you need to choose an ORDER BY
unique column, yes? Or is the documentation wrong?