SQL: Creating a relation table with 2 different auto_increment
I have 2 tables, both with their own auto incremented IDs, which are of course primary keys. When I want to create a 3rd table to establish the relation between these 2 tables, I always have an error. First one is about that you can have only 1 automatically-incremented column, the second one occurs when I delete the auto_increment statement from those 2, therefore sql doesn't allow me to make them foreign keys, because of the type matching failure. Is there a way that I can create a relational table without losing auto increment features? Another possible (but not preffered) solution may be