Trying to move data from a single table cc into 2 tables aa and bb related by a foreign key:
Table cc
====
data_a, data_b
Table aa
====
id, data_a
Table bb
====
id, data_b, aa_id
Table bb has a foreign key aa_id. I need to create a row in aa with cc.data_a and a row in bb with cc.data_b and the newly created aa.id.
Is this possible, and if so, how?