Consider the following contrived example where a FOREST contains TREE(s) and TREE(s) have BRANCH(es). Additionally FLOCK(s) contain BIRD(s) and BIRD(s) may or may not be on a BRANCH. CREATE TABLE 'FOREST' ( forest_id INT(11) NOT NULL AUTO_INCREMENT, 'name' VARCHAR(45) NOT NULL, ... ) CREATE TABLE 'TREE' ( 'tree_id' INT(11) NOT NULL AUTO_INCREMENT, 'forest_id' INT(11) NOT [...]
The post MySQL batch load of multiple tables with auto-incremented fields as foreign keys appeared first on BlogoSfera.