📜  将数据插入多个表mysql代码示例

📅  最后修改于: 2022-03-11 15:05:03.689000             🧑  作者: Mango

代码示例2
BEGIN;
INSERT INTO users (username, password)
  VALUES('test', 'test');
INSERT INTO profiles (userid, bio, homepage) 
  VALUES(LAST_INSERT_ID(),'Hello world!', 'http://www.stackoverflow.com');
COMMIT;