MySQL String Functions

by damonp on November 21, 2005

in Snippets

MySQL String Functions allow for easy in situ data manipulation.

For example:

update products set products_image = replace(products_image, ‘products/’, ”);

Will update all products_image fields from:

products/product_image

to:

product_image

Stop writing PHP code to loop through the whole dataset to make changes.

Popularity: 1%

Most Popular Posts

Damon Parker is a freelance sysadmin and web developer in Texas. He specializes in server setup, server security and high performance server configurations. Need help setting up a web server or getting a server back online after a crash or hack? Email Damon

Leave a Comment

Previous post:

Next post: