Home > Database > Mysql Tutorial > 不同数据库之间表数据的copy及CPY0012错误的解决办法

不同数据库之间表数据的copy及CPY0012错误的解决办法

WBOY
Release: 2016-06-07 15:55:48
Original
1443 people have browsed it

刚做了一个不同数据库之间表数据的copy,使用的是oracle数据库,使用如下语句: copy from ime_db_hgjs/ime_db_hgjs@IMENEWDB to IMEYDGGLM14/IMEYDGGLM14@SPT create DYNA_SJCL_FLOWUSERBAK using select * from dyna_flowUser_gg; 需注意的是,该数据库服

刚做了一个不同数据库之间表数据的copy,使用的是oracle数据库,使用如下语句:

copy from ime_db_hgjs/ime_db_hgjs@IMENEWDB to IMEYDGGLM14/IMEYDGGLM14@SPT create DYNA_SJCL_FLOWUSERBAK using select * from dyna_flowUser_gg;

需注意的是,该数据库服务器上dns必须先设置好,否则会报错。

由于源表中带有时间timestamp类型字段,直接报错CPY 0012 ,经查,说是copy不支持,所以只能先把源表中的timestamp改成varchar字段,然后再使用上述语句即可。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template