0
table1:
name,
address,
phone
table2:
name,
location,
mobile
table1
只是一个空白数据模式。 table2
有数据。两个表格数据之间的映射
我想将table2
数据插入table1
模式。
我怎样才能插入数据像name-->name
,address-->location
和phone-->mobile
table1:
name,
address,
phone
table2:
name,
location,
mobile
table1
只是一个空白数据模式。 table2
有数据。两个表格数据之间的映射
我想将table2
数据插入table1
模式。
我怎样才能插入数据像name-->name
,address-->location
和phone-->mobile
insert into table1 (name, address, phone)
select name, location, mobile from table2
的可能的复制[表的插入所有的值到SQL另一个表(http://stackoverflow.com/questions/576441/将所有表中的值插入到另一个表中) – starko
您在这里。我找到另一个例子并改变链接 – starko