I´m gonna start of by typing what i want.
So, i have one table, where each row gets a new id automatically, and for each new row created there, i want that id to also be put into another table into a specific column.
Database-structure: event
(This is the table i want to copy the id from)
EventID | lots of more columns
-
Database-structure: jointable (This is the table i want the "EventID" be copied to)
EventID | more columns.
So, i want my EventID also be put in my jointable automatically when an event get put in my table "event".