Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 85614475E0B for ; Fri, 7 Jun 2002 13:19:17 -0400 (EDT) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by postgresql.org (Postfix) with ESMTP id 63876476530 for ; Fri, 7 Jun 2002 12:15:07 -0400 (EDT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1) id 17GMOJ-0000EM-0U for pgsql-sql@postgresql.org; Fri, 07 Jun 2002 17:15:08 +0100 Received: from client.archonet.com (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with ESMTP id 9BFFB12B56 for ; Fri, 7 Jun 2002 17:05:35 +0100 (BST) Content-Type: text/plain; charset="iso-8859-1" From: Richard Huxton Organization: Archonet Ltd To: pgsql-sql@postgresql.org Subject: Re: UPDATE ... FROM vs standard SQL Date: Fri, 7 Jun 2002 17:05:33 +0100 User-Agent: KMail/1.4.1 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200206071705.33642.dev@archonet.com> X-Archive-Number: 200206/79 X-Sequence-Number: 8044 On Friday 07 Jun 2002 4:20 pm, Josh Berkus wrote: > > While PG's FROM extension makes life simple, I can't believe there's > > not a way > > to do an update on a join using standard SQL.=20 > > I don't understand why you're worried about this. The lack of UPDATE > .. FROM is widely regarded as an omission by the ANSI committee, and > most SQL RDBMS support it, including MS SQL Server and Oracle. I'm not > sure about MySQL, but MySQL doesn't support sub-selects either. Tell me about it. Where I'm using MySQL on client web-servers I find myself= =20 porting the data into PG to massage it then putting the results back into= =20 MySQL. One of the things missing from the various reviews/comparisons on th= e=20 web is any actual comparison of usage for DBA tasks (as opposed to handling= a=20 message-board app etc) > Is there a database you're tinking of that sticks to the strict SQL92 > definitions? OpenBase, maybe? Nope - mostly work with PG/MySQL/MS-SQL/Access. I use all the features at t= he=20 psql prompt, but like to stick to the standard for app-generated queries. Thanks Josh - Richard Huxton