pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: LR <lr-NOSPAM-@sib.org>
To: pgsql-sql@postgresql.org
Subject: execute a query in an other db
Date: Sat, 9 Nov 2002 17:51:40 +0100
Message-ID: <3dcd3c60_4@news.bluewin.ch> (raw)

Hi,

When I'm connected to a postgreSQL db ( e.g. myDB ), how could I execute
"select * from myTable;" in an other db (e.g. myOtherDB).

In other words, what is the postgreSQL equivalent of the MS SQL Server
statement "USE myOtherDB SELECT * FROM myTable" ?

Thanks
Lilian





view thread (4+ messages)  latest in thread

Message-ID: <3dcd3c60_4@news.bluewin.ch>
Permalink:  ../3dcd3c60_4@news.bluewin.ch/
Also on:    postgresql.org/message-id/3dcd3c60_4@news.bluewin.ch

 · 

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: lr-NOSPAM-@sib.org
  Subject: Re: execute a query in an other db
  In-Reply-To: <3dcd3c60_4@news.bluewin.ch>

* 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