I have a simple postgresql table defined as follows:
CREATE TABLE t_s (
a integer,
b integer
);
If I do a simple update statement UPDATE t_s SET a=1 WHERE b=1 I get an error:
Chyba SQL:
ERROR: syntax error at or near "SET"
LINE 1: SELECT COUNT(*) AS total FROM (UPDATE t_s SET a=1 WHERE b=1)...
^
Ve výrazu:
SELECT COUNT(*) AS total FROM (UPDATE t_s SET a=1 WHERE b=1) AS sub
Is there anything that can go wrong with this statement? I can't see any reason for this error. I use PostgreSQL 9.1.6.
UPDATEyou claim to be running.