AdRock Posted November 19, 2007 Share Posted November 19, 2007 How can I execute this query without it going crazy INSERT INTO Employee (ssn) VALUES (1098) INSERT INTO Child (name, age) VALUES ('Tom',6), ('Jessica', 5); I have 2 insert queries that are related to each other Link to comment https://forums.phpfreaks.com/topic/77931-solved-insert-into-2-tables-with-1-query/ Share on other sites More sharing options...
fenway Posted November 19, 2007 Share Posted November 19, 2007 Related? You mean you need the LAST_INSERT_ID? Link to comment https://forums.phpfreaks.com/topic/77931-solved-insert-into-2-tables-with-1-query/#findComment-394466 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.