码迷,mamicode.com
首页 > 数据库 > 详细

Using dblink in Postgres

时间:2016-04-14 12:19:37      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

select contractid from tcim_s_enterprice
EXCEPT
select contractid from 
dblink (
        host=172.16.51.25 port=5432 dbname=contract user=eshop password=iTLxUQ7FUv1sBu,
        select contractid from tcrm_s_contractmaster 
    ) AS B (
        contractid CHARACTER VARYING (100)
    )

 

Using dblink in Postgres

标签:

原文地址:http://www.cnblogs.com/mignet/p/dblink_in_postgres.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!