X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id DF77BD1D25F for ; Sat, 10 Apr 2004 18:32:09 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 18001-10 for ; Sat, 10 Apr 2004 18:32:09 -0300 (ADT) Received: from fedk0910.ferring.com (fedk0905.ferring.com [213.237.141.20]) by svr1.postgresql.org (Postfix) with ESMTP id 7A3FCD1D097 for ; Sat, 10 Apr 2004 18:32:06 -0300 (ADT) Received: from fedk0005.Fic.ferring.com (unverified) by fedk0910.ferring.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Sat, 10 Apr 2004 23:31:49 +0200 Received: from ferring.com (10.20.100.63 [10.20.100.63]) by fedk0005.Fic.ferring.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id HJQ42TSJ; Sat, 10 Apr 2004 23:32:05 +0200 Message-ID: <407867FE.1030501@ferring.com> Date: Sat, 10 Apr 2004 14:32:46 -0700 From: Kemin Zhou User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: begin update ... syntax error Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/94 X-Sequence-Number: 17469 I was trying to speed up a simple update query fri=# begin fri-# update tabA set nobegin=tmp.nobegin, noend=tmp.noend fri-# from tmp fri-# where tabA.acc=tmp.acc; ERROR: syntax error at or near "update" at character 7 The same query can be run with no problem if not starting with BEGIN. Does mean that BEGIN cannot preceed UPDATE? Or I am making some obvious miskate? Kemin ********************************************************************** Proprietary or confidential information belonging to Ferring Holding SA or to one of its affiliated companies may be contained in the message. If you are not the addressee indicated in this message (or responsible for the delivery of the message to such person), please do not copy or deliver this message to anyone. In such case, please destroy this message and notify the sender by reply e-mail. Please advise the sender immediately if you or your employer do not consent to e-mail for messages of this kind. Opinions, conclusions and other information in this message represent the opinion of the sender and do not necessarily represent or reflect the views and opinions of Ferring. **********************************************************************