You are here:
» How To Replace A String In Mysql Table Field
How to replace a string in Mysql table field
This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.
I have some hardcoded information in my database fields. I want to replace them with empty strings. What is the best way to replace those fields?

1 year 40 weeks ago
Tags:
You can use Mysql replace as follows:
Like in Drupal, if I have to replace a string (say, alpha2) in body of the content. I would replace body field in node_revisions table as follows:
You can find more detail here: Mysql String replace.
Post Comment