Jump to content

Deleting partial information from a table value...


Jim R

Recommended Posts

Assuming your data does not contain any occurrences of wp_1_ you should be able to form an UPDATE query using the REPLACE() function that would change all the occurrences of wp_1_ to anything you want - http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_replace

 

An UPDATE query looks like -

 

UPDATE your_table SET your_column = new_value

 

You want the new_value to be the REPLACE() function.

 

P.S. Column names are not enclosed in single-quotes as that makes them a string instead of a column name.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.