📜  mysql 插入多个表 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:15.250000             🧑  作者: 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;