如果我正确理解了您的架构,您就有了这个
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