pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: yek ching <ynching@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: pgsql  multi-database queries
Date: Fri, 9 Apr 2004 19:23:51 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0404091923380.14175-100000@css120.ihs.com> (raw)
In-Reply-To: <BAY13-F19q5ijb1u2ZN0005147e@hotmail.com>

On Thu, 8 Apr 2004, yek ching wrote:

> Dear Sir/Miss,
> 
> Is there a way to do a multi-database select query??.. I fail to find the 
> related solution... currently i i created seperate table call stockmaster  
> under seperate database for each seperate organizations... When i want to 
> queries out the stock item qty for multi database, i face a problem where 
> sql only can work for single database..
> 
> How can i use the same SQL statement in Pgsql??..
> "SELECT * FROM A.stockmaster,B.stockmaster where A.item=B.item"

Look in the contrib/dblink directory in the source tar ball.




view thread (2+ messages)

Message-ID: <Pine.LNX.4.33.0404091923380.14175-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0404091923380.14175-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0404091923380.14175-100000@css120.ihs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: scott.marlowe@ihs.com, ynching@hotmail.com
  Subject: Re: pgsql  multi-database queries
  In-Reply-To: <Pine.LNX.4.33.0404091923380.14175-100000@css120.ihs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox