我使用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创建的数据库
发布评论