兩個表,表1 表2
如果要將 表1的數據並入表2用以下語句即可
insert into 表2(字段1,字段2) select 字段1,字段2 from b1
注意把字段名全部寫清楚
select * into 新表名 from (select * from T1 union all select * from T2)
這個語句可以實現將合並的數據追加到一個新表中。
不合並重復數據 select * from T1 union all select * from T2
合並重復數據 select * from T1 union select * from T2