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 Quote 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? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.