Posts by Matheus Piano • 1 point
2 posts
-
0
votes1
answer802
viewsA: SQL Error (1093): You can’t specify target table 'import2016' for update in FROM clause
I managed to solve using the concept that @Rovann Linhalis said: in subquerie, you put the alias of the import2016 table as the [import2016 as a], but the select column was only column4, without the…
-
0
votes1
answer802
viewsQ: SQL Error (1093): You can’t specify target table 'import2016' for update in FROM clause
I am running this PROCEDURE, and it returns this error! BEGIN SET @cont = 0; REPEAT SET @sqlstring = "UPDATE import2016 SET coluna4 = (SELECT coluna4 FROM import2016 AS a WHERE a.coluna2 ='' and…