作者
digoal
日期
2020-03-24
标签
PostgreSQL , oracle , mysql , sqlite , dblink
背景
在pg中发送query到其他数据库: oracle, mysql , sqlite , 类似postgresql 连接 postgresql的dblink
https://github.com/ossc-db/dblink_plus
```
dblink_plus
This tools enables to connect from PostgreSQL server to other databases. Currently it supports to connect to PostgreSQL, Oracle Database, MySQL, Sqlite3.
Quick Introduction
With dblink_plus, users can throw SQL to external databases like below:
=# BEGIN;
=# SELECT dblink.connect('ora_conn', 'server_oracle', false);
=# SELECT dblink.query('ora_conn', 'SELECT c1, c2 FROM tbl') AS t(c1 int, c2 text); -- get rows
=# SELECT dblink.exec('ora_conn', 'UPDATE tbl SET c3 = 999 WHERE c1=1'); -- modify rows
=# COMMIT;
Please take a look to documentation http://ossc-db.github.io/dblink_plus/index.html.
```
PostgreSQL 许愿链接
您的愿望将传达给PG kernel hacker、数据库厂商等, 帮助提高数据库产品质量和功能, 说不定下一个PG版本就有您提出的功能点. 针对非常好的提议,奖励限量版PG文化衫、纪念品、贴纸、PG热门书籍等,奖品丰富,快来许愿。开不开森.