如果我正確理解你的模式,你有後apended一個這
Table1: Column1
hai,
how,
are,
you.
Table2: Column2
i,
am,
fine.
做到這一點:
Insert Into Table1 (Column1)
Select Column2 From Table2
你會得到這樣的:
Table1: Column1
hai,
how,
are,
you.
i,
am,
fine.
如果你有3列 然後只是這樣做:
Insert Into Table1 (Column1, Column2, Column3) //the (Column1, Column2, Column3) is not neccessary if those are the only columns in your Table1
Select Column1, Column2, Column3 From Table2 //the Select Column1, Column2, Column3 could become Select * if those are the only columns of your Table2
編輯:這樣做,如果你不想修改任何表。
Select Column1, Column2, Column3
From Table1
UNION ALL
Select Column1, Column2, Column3
From Table2
很酷,我編輯了3列的答案。 –
但是你正在修改表1中的列,這不是我想要的......需要一種方法而不修改數據庫中的數據。 – stallion
你只需要展示他們?與選擇語句? –