Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f77GYC601595 for ; Tue, 7 Aug 2001 12:34:12 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 98036; Tue, 07 Aug 2001 09:34:10 -0700 From: "Josh Berkus" Subject: Re: Why can't I ......... To: mbenzid@yahoo.de (Mounir Benzid), pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Tue, 07 Aug 2001 09:34:10 -0700 Message-ID: In-Reply-To: <209b95b8.0107302354.7ff1147e@posting.google.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_===98036====davinci.ethosmedia.com===_" X-Archive-Number: 200108/103 X-Sequence-Number: 4324 This is a multi-part MIME message --_===98036====davinci.ethosmedia.com===_ Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Mounir, > -- do a join between two databases within the same installation. > > ... where db1.table1.userid = db2.table2.userid Because this is not supported on PostgreSQL. There are a number of reasons, and it may never be supported because there are drawbacks to allowing databases to reference each other (mainly security). > -- use labels to name columns in this way > > ... select col1 userid, col2 name from ... (instead of using AS) Because AS is the ANSI SQL 92 standard. And we like standards. > -- do an update with full referenced colomns > > ... update table1 set table1.col1=value Because UPDATES, per the SQL 92 standard, are on one table only. Thus any refenced columns *must* belong to that table, and if so, why name it? -Josh Berkus ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco --_===98036====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===98036====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===98036====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===98036====davinci.ethosmedia.com===_--