【问题标题】:Mapping between two table data两个表数据之间的映射
【发布时间】:2016-09-24 10:22:28
【问题描述】:
table1:
name,
address,
phone


table2:
name,
location,
mobile

table1 只是一个空白数据的模式。 table2 有数据。

我想将table2 数据插入table1 架构。

如何插入 name-->nameaddress-->locationphone-->mobile 等数据

【问题讨论】:

标签: mysql sql database


【解决方案1】:
insert into table1 (name, address, phone)
select name, location, mobile from table2

【讨论】:

    猜你喜欢
    • 2017-11-30
    • 1970-01-01
    • 1970-01-01
    • 2015-03-24
    • 1970-01-01
    • 1970-01-01
    • 2012-10-10
    • 1970-01-01
    • 2014-06-12
    相关资源
    最近更新 更多