I have 2 tables 'table1' & 'table2', both have column named 'id' (primary key) and both have auto increment. The problem is how do I make the primary key viable for the both tables.
Example: I enter id '100' in 'table1' and after that if I try to enter a new record in 'table2' I would have '101' in 'table2'
I thought 'foreign key' would do the job but it did the exactly opposite of what I need