X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 88B2C11F662C for ; Fri, 7 Apr 2006 18:36:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73049-05 for ; Fri, 7 Apr 2006 18:36:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from outbound7.internet-mail-service.net (outbound7.internet-mail-service.net [216.240.47.198]) by postgresql.org (Postfix) with ESMTP id 3D08811F6273 for ; Fri, 7 Apr 2006 18:36:10 -0300 (ADT) Received: from idiom.com (idiom.com [216.240.32.1]) by outbound.internet-mail-service.net (Postfix) with ESMTP id BAA2824DDF2 for ; Fri, 7 Apr 2006 14:36:09 -0700 (PDT) Received: from [192.168.1.109] (adsl-69-107-132-69.dsl.pltn13.pacbell.net [69.107.132.69]) by idiom.com (8.12.11/8.12.11) with ESMTP id k37La9rF083198 for ; Fri, 7 Apr 2006 14:36:09 -0700 (PDT) (envelope-from bryce1@obviously.com) Message-ID: <4436DB41.2070303@obviously.com> Date: Fri, 07 Apr 2006 14:36:01 -0700 From: Bryce Nesbitt User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: How to copy data between joined columns? References: <4436CC56.3040707@obviously.com> <1144442088.32269.31.camel@state.g2switchworks.com> In-Reply-To: <1144442088.32269.31.camel@state.g2switchworks.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200604/55 X-Sequence-Number: 24864 Scott Marlowe wrote: > If it's for the same rows in the same table, you're overworking it. > > update table set field1=field2 where somecondition; > If it were for the same rows in the same table, I would not have asked. This is for columns from two tables, whos relationship is only meaningful after a join. -Bryce -- ---- Visit www.obviously.com