I need to update the value of one field for another from a certain date ( 5/04/2017
). It is a DB2 type database.
I am using this sentence:
UPDATE tabla SET campo='valor_nuevo'
FROM tabla
WHERE (campo='valor_viejo' AND fecha>=DATE('2017-04-05'));
But I get the following error:
Informe de error: Error SQL: DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC: =;IVIDAD.ACT_GEOGRAFIA;)
Does anyone know how I can fix it?