码迷,mamicode.com
首页 > 其他好文 > 详细

insert into select 多个表

时间:2019-01-27 12:55:39      阅读:298      评论:0      收藏:0      [点我收藏+]

标签:bsp   rom   style   into   user   方法   from   HERE   auth   

INSERT INTO user_auth(userid, auth_plane_id)

select user.user_id AS userid, plane.id AS auth_plane_id

FROM user, plane

WHERE user.name = ‘陈‘ and plane.name=‘737‘;

 

或者用join的方法.

insert into select 多个表

标签:bsp   rom   style   into   user   方法   from   HERE   auth   

原文地址:https://www.cnblogs.com/mafeng/p/10325848.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!