Re: begin update ... syntax error

Поиск
Список
Период
Сортировка
От Gregory S. Williamson
Тема Re: begin update ... syntax error
Дата
Msg-id 71E37EF6B7DCC1499CEA0316A25683280105787D@loki.wc.globexplorer.net
обсуждение исходный текст
Ответ на begin update ... syntax error  (Kemin Zhou <kemin.zhou@ferring.com>)
Список pgsql-sql
try a semicolon after the begin ?

begin;
<code>
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:
Subject:    [SQL] begin update ... syntax error
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
containedin the message. If you are not the addressee indicated in this message (or responsible for the delivery of the
messageto such person), please do not copy or deliver this message to anyone. In such case, please destroy this message
andnotify the sender by reply e-mail. Please advise the sender immediately if you or your employer do not consent to
e-mailfor messages of this kind. Opinions, conclusions and other information in this message represent the opinion of
thesender and do not necessarily represent or reflect the views and opinions of Ferring. 
**********************************************************************


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
              http://www.postgresql.org/docs/faqs/FAQ.html





В списке pgsql-sql по дате отправления:

Предыдущее
От: Kemin Zhou
Дата:
Сообщение: begin update ... syntax error
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: begin update ... syntax error