I am trying to update my mysql
table "upproj" using Visual Studio 2010
(c#
).
I want to execute the following query :
string Query = " update tlog.upproj set summ=(select sum(grade) from tlog.upproj group by ams having count(*) =2); ";
But I get error
"You can't specify target table 'upproj' for update in FROM clause".
When I execute the previous query on Mysql
Query browser I don't get any error, but my project needs to execute this query from visual studio.
Is there any way to fix that?