im trying to rename a user name in my data base and i used this syntex below in my database sql, but getting error
i looked/searched here but didnt seem to see what i want and yes im a newbee please help with full syntex thanks
update table set Username=replace(Username,'roy1','roy2') where instr(Username,'roy1')!=0;
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table set Username=replace(Username,'roy1','roy2') where inst' at line 1
i looked/searched here but didnt seem to see what i want and yes im a newbee please help with full syntex thanks
update table set Username=replace(Username,'roy1','roy2') where instr(Username,'roy1')!=0;
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table set Username=replace(Username,'roy1','roy2') where inst' at line 1