Jerran

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

 Open pgAdminIII Query window, execute SQL:

create extension dblink;

and create dblink extension(default no), then can see the dblink

Now, query other db data, use command:

 dblink(text,text), the first param is outside db link info, the second param is execute sql.

In other words, can firstly build the db link, and execute dblink(sql).

posted on 2015-03-25 15:52  Jerran  阅读(245)  评论(0编辑  收藏  举报