I have a table in database where I am trying to update some data.
Table1
Uname   Password   Email          SpecialID
 A      qwh2       abc@xyz.com    23243
 B      rt4f       aafj@xyz.com   56343
I am trying to change the SpecialID from this query:
Update Table1 SET SpecialID='24152' where Uname=(select Uname from Table1 where Email='abc@xyz.com');
But I am getting this error :
ERROR 1093 (HY000): You can't specify target table 'Table1' for update in FROM clause
Please help me and tell me what is wrong I am doing in this query...!!! I searched but didn't get proper solution..
 
     
    