Tell me how to create an auto_incrymental column in the table by group?
Example:
id name group_field 1 test 1 2 test2 1 1 test3 2 2 test4 2 1 test5 3 2 test6 3 The id sequence goes within each group. Found a solution for the table on the MyISAM engine, but I need a solution for InnoDB.