I'm testing the operation of a subquery (subquery) and running the command below:
DELETE FROM pessoa
WHERE id IN(SELECT id FROM pessoa
WHERE id=2
);
The following error occurs:
You can not specify target table 'person' for update in FROM clause