table1
的列id
what
title
和另外5列;
table2
仅具有 列id
what
和title
;
如何将table2
中的所有行插入table1
中?
insert into table1 select * from table2
-由于表结构不同而无法使用。
答案 0 :(得分:2)
您可以在下面尝试-
insert into table1(id, what, title)
select id, what, title from table2