insert into table1(a,b,c) select a,b,c from table2
这种类型的距离,后面的select 可以跟where条件么?可以套子查询左连接右连接么。。。
比如
insert into table (a,b,c) select * from( select table1.a,table1.b,table2.c from table1 left join on table1.a=table2.a) where a='a'
这样可以么???
...全文
76599打赏收藏
insert into select 可以加where条件么?
那个我是新手。。。问一个比较白痴的问题哦。。。。 insert into table1(a,b,c) select a,b,c from table2 这种类型的距离,后面的select 可以跟where条件么?可以套子查询左连接右连接么。。。 比如 insert into table (a,b,c) select * from( select table1.a,table1.b,table2.c from table1 left join on table1.a=table2.a) where