How to deal with fields with uniqueness constraints in the case of sub-tables?

how to deal with fields with unique indexes in the case of sub-tables?
there is no guarantee of constraints when adding new ones

May.16,2022

introduces a practice: using a summary table, similar to table_name_increment, insert the summary table before the data is entered into the sub-table, get the id, and record the id in the sub-table.


there are several solutions learn

Menu