| 发表于:2007-09-19 18:50:355楼 得分:0 |
1.b,c两表字段一样的. insert into a(a1,……) select m1,…… from( select b1 as m1, from b,…… where 条件 union select c1 as m1, from c,…… where 条件 ) 2.b,c两表字段不一样 insert into a(a1,……) select m1,…… from( select b1 as m1, from b,…… where 条件 [left,right,inner,outer]join select c1 as m2, from c,…… where 条件 )on b.xxx=c.xxx | | |
|