I've got a Postgres DB with a table named "precipitazione". What I want to do is update its column "quantita" when it shows a value of -9999. My statement :
UPDATE precipitazione SET quantita = 0 WHERE quantita = -9999;
is not working(It is not working in the sense that the query won't be executed. It gives me a syntax error "near SET") I also tried to set "quantita" to DEFAULT (which is zero),but it's still not working.
SELECT * FROM precipitazione WHERE quantita = -9999;
is working.
Postgres VERSION: PostgreSQL 9.3.10