在 Mac 上以编程方式将 MS Access 导入到 CSV
学校官方群组违约率网站左侧有一个链接到“下载整个列表”。这将下载 Access 数据库文件 (.accdb)。我想要 CSV (.csv) 格式。
此答案提供了导入 Access to MySQL 的 Windows 解决方案,但理想情况下,我想要一个 Unix 命令行程序,例如,accdb2csv input.accdb output.csv
。有这样的事吗?如果没有,我该如何编码?
以下是我找到的其他一些链接:
- http://jackcess.sourceforge.net/
- https://github.com/akaihola/mdb2django
- https://github.com/karlbennett/export-accessdb/blob/5b492778439c85f15d5c 859a27094514f7aba8ee/ src/main/java/org/youthnet/export/Smasher.java
- https://github.com/Tomvb62/DBConvert/blob/dc67a3d835a9708320d29b8040ddc5cde7e7fa39/src/dbengine/export/MSAccess.java
The Official Cohort Default Rates for Schools site has a link on the left to “Download Entire List.” That downloads an Access database file (.accdb). I'd like to have it in CSV (.csv) format.
This answer provides a Windows solution to import Access to MySQL, but ideally, I'd like to have a Unix command-line program, e.g., accdb2csv input.accdb output.csv
. Is there anything like that? If not, how do I code that?
Here are some other links I've found:
- http://jackcess.sourceforge.net/
- https://github.com/akaihola/mdb2django
- https://github.com/karlbennett/export-accessdb/blob/5b492778439c85f15d5c859a27094514f7aba8ee/src/main/java/org/youthnet/export/Smasher.java
- https://github.com/Tomvb62/DBConvert/blob/dc67a3d835a9708320d29b8040ddc5cde7e7fa39/src/dbengine/export/MSAccess.java
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚发布了一个基于Jackess的access2csv程序。代码位于 https://github.com/AccelerationNet/access2csv,二进制文件位于 https://github.com/AccelerationNet/access2csv/releases。
I just released an access2csv program based on Jackess. Code is at https://github.com/AccelerationNet/access2csv, a binary is available at https://github.com/AccelerationNet/access2csv/releases.
因此,右键单击将文件从 Aaron.accdb 重命名为 Aaron.zip,然后右键单击解压缩。 Office 2007 / 2010 格式是有效压缩的 XML 文件。
这将为您提供一堆 XML,您可以使用 Excel 或 XSL 等轻松解析它们。
so right click rename the file from Aaron.accdb to Aaron.zip and then right click unzip it. Office 2007 / 2010 formats are effectively zipped XML files.
This will give you a bunch of XML that you can easily parse using Excel, or XSL, etc.