如何将postgresql数据库移植到oracle或sql server2000

如何将postgresql数据库移植到oracle或sql server2000
---------------------------------------------------------------

用psql可以将数据库的结构以及数据转化成sql脚本(create table ,insert 等),psql 的用法可以看帮助
#psql --help
然后就可以移植了。

如果数据量很大的话,那就用copy命令
在psql提示符下
=〉\h copy
可以看到帮助
---------------------------------------------------------------

先导出表结构生成.sql or .txt 文件,在把该表结构在导入 sql server2000 or oracle

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus