I want to make a insert into 2 tables
visits:
visit_id int | card_id int
registration:
registration_id int | type
It's not possible with one query as INSERT can only insert data to one table in mysql. You can either
You can wrap those inserts in transaction if you need to make sure that both queries will write the data.