使用PostgreSQL连接MSSQL创建的数据库

编程入门 行业动态 更新时间:2024-10-26 01:20:50
本文介绍了使用PostgreSQL连接MSSQL创建的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用Mac和PostgreSQL是数据库管理的选择。我无法安装MSSQL。有一个由MSSQL创建和管理的数据库。 我不能通过脚本将整个数据复制到我的数据库(因为使用实时数据)我唯一的选择是连接MSSQL用PostgreSQL创建的数据库。

I use Mac and PostgreSQL is the choice for db management. I can not install MSSQL. There's a db which is created and managed by MSSQL. I must not copy the entire data via a script, to my database (because of using real time data) My only option is, connecting that MSSQL created db with PostgreSQL.

有可能吗?如果是,如何?我的查询有任何相关限制吗? 感谢。

Is it possible? If yes, how? Will there be any relevant limitations for my queries? Thanks.

其他详细信息:

我会进行选择, 我不会修改现有的数据。

I'll make selections, calculations, statistically. I won't modify the existing data.

推荐答案

此功能可让您连接到不同的数据库从PostgreSQL本身,被称为外来数据包装器。

The feature, which allows you to connect to a different database from within PostgreSQL itself, is called foreign data wrapper.

这里有一个可用的外部数据包装器列表,但不包括mssql。但是ODBC是,因此(在理论上)如果您安装 odbc_fdw ,您可以在PostgreSQL实例中访问外部mssql表。

Here, there is a list of available foreign data wrappers, but mssql is not included. But ODBC is, so (in theory) if you install odbc_fdw, you can access foreign mssql tables in your PostgreSQL instance.

更多推荐

使用PostgreSQL连接MSSQL创建的数据库

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

发布评论

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

>www.elefans.com

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