I'm new to the forum and SQL. I use the MySQL Workbench DBMS to try to learn the syntax. Querying a site of tutorial, I was to carry out an update using a select, follows command line:
update actor
set salario = salario * 1.1
where salario = (select min(salario) from actor)
But it returns me an error and I have no idea how to solve it:
"Error Code: 1093. You can not specify target table 'actor' for update in FROM clause "
I made the separate select to see if I was wrong in the syntax, but it ran smoothly.
Thank you!