将MS Access迁移到PostgreSQL

编程入门 行业动态 更新时间:2024-10-24 14:16:48
本文介绍了将MS Access迁移到PostgreSQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在以Access文件形式获取数据.

I'm getting data as an Access file.

我的应用程序使用PostgreSQL/Java.我想将Access数据库转换为PostgreSQL. 谁能帮我编写代码

My application uses PostgreSQL/Java. I'd like to convert the Access database to PostgreSQL. can any one help me to code this

推荐答案

我怀疑是否有任何简单的自动方法.您将必须创建ddl语句以在postgresql中创建表(不确定是否可以从access导出ddl),从access导出数据到csv,然后使用postgresql copy from命令填充表.

I doubt there is any simple automatic method. You will have to create ddl statements to make the tables in postgresql (not sure if you can export ddl from access), export the data from access to a csv, and then use postgresql copy from command to populate the tables.

或者您可以考虑尝试使用此工具:

Or you could consider trying this tool:

docman.sourceforge/home_html/projects/sql/exportSQL3.txt

但它看起来像开发版本,可能还不成熟.

but it looks like a dev version, it may not be mature.

更多推荐

将MS Access迁移到PostgreSQL

本文发布于:2023-10-15 01:09:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1492798.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:MS   Access   PostgreSQL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!