Mysql中关联ID同时插入多表

INSERT INTO `t_hot_residential` VALUES ( NULL, '新硅谷', '上地', 1 );
INSERT INTO `t_hot_user` VALUES ( NULL,last_insert_id(),'title1','12','4','501','150','31434','1231',1);

猜你喜欢

转载自aprilmiao.iteye.com/blog/1584751