2016-09-24 97 views
0
table1: 
name, 
address, 
phone 


table2: 
name, 
location, 
mobile 

table1只是一个空白数据模式。 table2有数据。两个表格数据之间的映射

我想将table2数据插入table1模式。

我怎样才能插入数据像name-->nameaddress-->locationphone-->mobile

+0

的可能的复制[表的插入所有的值到SQL另一个表(http://stackoverflow.com/questions/576441/将所有表中的值插入到另一个表中) – starko

+0

您在这里。我找到另一个例子并改变链接 – starko

回答

1
insert into table1 (name, address, phone) 
select name, location, mobile from table2