I need to change the prefix of one field to another for all records before a date.
UPDATE tabla
SET campo1 LIKE 'YYYYYYY%';
WHERE (campo1 LIKE 'XXXXXXXXXXXXX%' AND FECHA<DATE('2017-04-05'));
The following error report appears:
Error SQL: DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC: LIKE;D
SET ACT_GEOGRAFIA;=
What would the correct query be like?