USE last_insert_test; CREATE TABLE table1 ( id1 int ) ENGINE=InnoDB; CREATE TABLE table2 ( id2 int ) ENGINE=InnoDB; INSERT INTO table2 VALUES(NULL);