Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id BA8414761B3 for ; Thu, 4 Jul 2002 10:59:12 -0400 (EDT) Mailbox-Line: From pimentel_ligia@hotmail.com Thu Jul 4 10:59:12 2002 Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id B77EF47602C for ; Thu, 4 Jul 2002 10:53:46 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 6B6F6381D66; Thu, 4 Jul 2002 10:53:19 -0400 (EDT) From: "Ligia Pimentel" X-Newsgroups: comp.databases.postgresql.sql Subject: Re: Selecting data from a table created in another database... Date: Thu, 4 Jul 2002 08:49:31 -0500 Organization: . Lines: 64 Message-ID: References: <3D23A94E.3050208@oasis.net.au> Reply-To: "Ligia Pimentel" X-Complaints-To: news@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-sql@postgresql.org X-Spam-Status: No, hits=-0.4 required=5.0 tests=FORGED_HOTMAIL_RCVD version=2.30 X-Spam-Level: X-Archive-Number: 200207/64 X-Sequence-Number: 8443 Thanks. "Rudi Starcevic" wrote in message news:3D23A94E.3050208@oasis.net.au... > Hi Ligia, > > When I need to do this I use a scripting language like PHP, Perl or > ColdFusion to > select from one db and insert into another. > As a matter of fact I had to do this exercise just yesturday. > I like it as I find I have much more freedom to gather data, organise it > then insert it. > It's easy to view the output of your selects on the screen and when > happy do the insert(s). > > Hope this helps. > Regards > Rudi Starcevic. > > 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... > > > >Thank you for your help... > > > >Ligia > > > > > > > > > > > > > > > > > >---------------------------(end of broadcast)--------------------------- > >TIP 6: Have you searched our list archives? > > > >http://archives.postgresql.org > > > > > > > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > >