Re: Selecting data from a table created in another database... - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: Selecting data from a table created in another database...
Date
Msg-id 200207032022.g63KM4A02548@candle.pha.pa.us
Whole thread Raw
In response to Selecting data from a table created in another database...  ("Ligia Pimentel" <lmpimentel@yahoo.com>)
List pgsql-sql
Ligia Pimentel wrote:
> I don't know if this can be done...
> 
> In MSSQL Server I can access a table created in another database (on the
> same server, of course) by using the following syntaxis...
> 
> select * from databasename..tablename where condition;
> 
> Can I do this in postgres?
> 
> I'm using version 7.2 on a redhat server...

Sorry, you can't do cross-db queries with PostgreSQL.  Take a look at
/contrib/dblink as an option.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 




pgsql-sql by date:

Previous
From: Mark Frazer
Date:
Subject: Re: Possible Bug regarding temp tables (sql or psql?)
Next
From: Mark Frazer
Date:
Subject: Possible Bug regarding temp tables (sql or psql?)