Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W45nd-0004a7-1R for pgsql-php@arkaria.postgresql.org; Fri, 17 Jan 2014 09:33:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W45nc-0005zq-DC for pgsql-php@arkaria.postgresql.org; Fri, 17 Jan 2014 09:33:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W45nb-0005zk-OX for pgsql-php@postgresql.org; Fri, 17 Jan 2014 09:33:11 +0000 Received: from [2404:130:0:10::40:2] (helo=mail.catalyst.net.nz) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W45nY-0001Mh-E9 for pgsql-php@postgresql.org; Fri, 17 Jan 2014 09:33:11 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id CE96B33199; Fri, 17 Jan 2014 22:33:02 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nHqpNTdjQuDB; Fri, 17 Jan 2014 22:33:02 +1300 (NZDT) Received: from [192.168.1.64] (122-60-64-230.jetstream.xtra.co.nz [122.60.64.230]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id 3807D32EB9; Fri, 17 Jan 2014 22:33:02 +1300 (NZDT) Message-ID: <52D8F8CE.4080502@catalyst.net.nz> Date: Fri, 17 Jan 2014 22:33:02 +1300 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Archana K N , PostgreSQLPHP PostgreSQLPHP Subject: Re: UPDATE (SELECT ) is not working................ References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2404:130:0:10::40:2 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-php Precedence: bulk Sender: pgsql-php-owner@postgresql.org On 17/01/14 21:28, Archana K N wrote: > > ""*/my_db=# update test set id=g.id2 from (select id2 from test2)as g ;/* > */UPDATE 0/* > "" > 'UPDATE 0' means 0 rows where found to update. So everything is working fine, but your query search criteria is finding no candidate rows to change. This is purely a data issue. Regards Mark -- Sent via pgsql-php mailing list (pgsql-php@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-php