Quantcast
Channel: Chris Herberte - Linux
Viewing all articles
Browse latest Browse all 7

Search and Replace MySQL

$
0
0

Performing a case-sensitive search-and-replace through a table is easy with MySQL when you know how.

UPDATE table_name SET table_field = REPLACE(table_field, 'replace_that', 'with_this');

This has proved useful for updating Drupal's files table where the paths are incorrect. I hope this helps someone


Viewing all articles
Browse latest Browse all 7

Trending Articles