首页 > 数据库 > mysql教程 > 复制数据库

复制数据库

WBOY
发布: 2016-06-07 15:29:24
原创
1473 人浏览过

truncate table ASSET_TRANSFER_INTERFACE copy to mmscde/paic1234@hdfmsprd insert ASSET_TRANSFER_INTERFACE using select * From ASSET_TRANSFER_INTERFACE copy to mmscde/paic1234@hdfmsprd insert mms2_actions using select * From mms2_actions cop

truncate table ASSET_TRANSFER_INTERFACE

copy to mmscde/paic1234@hdfmsprd insert ASSET_TRANSFER_INTERFACE using select * From ASSET_TRANSFER_INTERFACE

copy to mmscde/paic1234@hdfmsprd insert mms2_actions using select * From mms2_actions

copy to mmscde/paic1234@hdfmsprd insert mms2_actions_eoa using select * From mms2_actions_eoa

copy to mmsdata/paic1234@hdfmsprd create mms_material_info_bak using select m.* From mms_material_info m, mms2_actions a where a.material_id = m.material_id

insert into mms_material_info

select b.*, '', '', ''

from mms_material_info_bak b

where not exists (select 1 from mms_material_info m where m.material_id = b.material_id)

COPY {FROM database | TO database | FROM database TO database} {APPEND|CREATE|INSERT|REPLACE} destination_table [(column, column, column, ...)]

USING query

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板