Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E5B1A475A9E for ; Thu, 28 Nov 2002 02:21:54 -0500 (EST) Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by postgresql.org (Postfix) with ESMTP id 30A7C4759AF for ; Thu, 28 Nov 2002 02:21:54 -0500 (EST) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-32.mail.demon.net with esmtp (Exim 3.35 #1) id 18HIzi-0001us-0W; Thu, 28 Nov 2002 07:21:54 +0000 Received: from localhost ([127.0.0.1] ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.36 #1 (Debian)) id 18HIzh-0005G7-00; Thu, 28 Nov 2002 07:21:53 +0000 Subject: Re: Select to other database's table From: Oliver Elphick To: yudha Cc: pgsql-admin@postgresql.org In-Reply-To: <008a01c29724$12a78320$ea00a8c0@yudha> References: <008a01c29724$12a78320$ea00a8c0@yudha> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-d34iLF6c50Rj+Xb+Sd5Y" Organization: LFIX Limited Message-Id: <1038468113.13298.308.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 28 Nov 2002 07:21:53 +0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/290 X-Sequence-Number: 6478 --=-d34iLF6c50Rj+Xb+Sd5Y Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2002-11-28 at 21:21, yudha wrote: > Dear Milist; > Please give me some advices and help. How can i do=20 > "select" the TABLE_1 on other database DB_2,=20 > but currently i'm connecting to on DB_1. >=20=20 > ORACLE :=20 > Current_DB_1 #> Select * From DB_2.TABLE_1; >=20=20 > MS-SQL : > Current_DB_1 #> Select * From DB_2..TABLE_2; >=20=20 > PostGre : > Current_DB_1 #> How do i write...??? You cannot read from another database. In 7.3, you can have multiple schemas in one database and the syntax for reading a file from another schema is: SELECT * FROM schema.table... I understand that 7.3's release is imminent. --=20 Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D "The earth is the LORD'S, and the fullness thereof; the world, and they that dwell therein." Psalms 24:1 --=-d34iLF6c50Rj+Xb+Sd5Y Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA95cQRYU1MND4dDBwRAkR9AJ0WD/FSFb+dVZy8Tj8xSIR6tyOHUACgmwDt AXF6pkD9rTb+Q6QXxIo5gGc= =MNFu -----END PGP SIGNATURE----- --=-d34iLF6c50Rj+Xb+Sd5Y--