From my perspective this query should work
UPDATE tab_antiguedad set rol_id = 4
where ant_id = 29
and rol_id not in (
select rol_id
from tab_antiguedad
where usu_id = 55
)
Where (select rol_id from tab_antiguedad where usu_id = 55)
here rol_id
has 4 and 3.
But the mistake that throws me is:
You can't specify target table 'tab_antiguedad' for update in FROM clause
Please help.