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 D2382D1B4BE for ; Sat, 10 Apr 2004 18:51:24 -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 27012-04 for ; Sat, 10 Apr 2004 18:51:25 -0300 (ADT) Received: from loki.globexplorer.com (unknown [208.35.14.101]) by svr1.postgresql.org (Postfix) with ESMTP id 46A66D1D803 for ; Sat, 10 Apr 2004 18:51:20 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: begin update ... syntax error Date: Sat, 10 Apr 2004 14:51:27 -0700 Message-ID: <71E37EF6B7DCC1499CEA0316A25683280105787D@loki.wc.globexplorer.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] begin update ... syntax error Thread-Index: AcQfRZ0bslUD88vKS6qzHCPQw+fE+QAADhKs From: "Gregory S. Williamson" To: "Kemin Zhou" , X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/95 X-Sequence-Number: 17470 try a semicolon after the begin ? begin; commit; Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: Kemin Zhou [mailto:kemin.zhou@ferring.com] Sent: Sat 4/10/2004 2:32 PM To: pgsql-sql@postgresql.org Cc:=09 Subject: [SQL] begin update ... syntax error I was trying to speed up a simple update query fri=3D# begin fri-# update tabA set nobegin=3Dtmp.nobegin, noend=3Dtmp.noend fri-# from tmp fri-# where tabA.acc=3Dtmp.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 del= ivery of the message to such person), please do not copy or deliver this me= ssage to anyone. In such case, please destroy this message and notify the s= ender 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, conc= lusions and other information in this message represent the opinion of the = sender and do not necessarily represent or reflect the views and opinions o= f Ferring. ********************************************************************** ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html