I have set my table to InnoDB
which has parent to child relation
table 2(child) has FK Reference to table 1 (parent) PK
table 2 has cascade on update and delete
I am trying to insert a record in table 2 which PK doesnt exist yet in table 1
my goal is to create a temporary fk in table 2 and then update that later to a valid FK once PK has been created in table 1
thanks!