I am trying to execute this query but I am getting an error.
update T_CLIENT c set taxe_income = true
where c.id in (select c1.id from T_CLIENT c1, T_ADRESS a
where c1.id = a.client_id and a.country_id = 14 and a.adress_principale is true);
The error is :
You can't specify target table 'c' for update in FROM clause
I don't know how to write this query in order to make it work.
If anyone has an idea...
Thanks