I want to replace a specific row in mysql database, I use this query:
UPDATE users SET name = replace (name, 'raj', 'rajesh')
however, what this request does is where it will find raj, it will replace rajesh for example, if there is a raju line in the databse after running this raju request it becomes rajeshu, which I don't want. I want a query that matches the replace string to exactly mean that after running the query, only "raj" should be replaced by "rajesh" and "raju" should remain as it is .. can someone help?
sql mysql sql-update replace where
Ankit Avlani
source share