|
How to use find replace in MYSQL
|
|
04-29-2010, 09:37 PM
Post: #1
|
|||
|
|||
|
How to use find replace in MYSQL
If, like us you have lots of data in your mysql database and need to make a find/replace change (like in excel) you can!
So, for example, let’s say you have a table called “mytable” with data stored in a field called “mycontent” and you want to replace all instances of the word “one” with “two”, then your SQL would look like this: Code: update mytable set mycontent = replace(mycontent,'one','two');Andrew Hosted Web UK Staff www.hostedweb.co.uk |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help



