509-261 Cooper Street
Ottawa, Ontario (Canada) K2P 0G3

Michele Foster
(613) 232-7447
michele@wizardev.ca
http://WizarDev.ca/

WizarDev Logo

Professional Web Development, Web Design and Database Solutions

Subscribe to Web Words

Powered by FeedBlitz

RSS Icon Subscribe via RSS

Web Words - Blog

Web Words contains resources useful to web site developers and owners, organized by category and searchable.
Have an item for inclusion here, send it to me.

MySQL Replace Function

SQL and Database Things

I’ve needed this a few times lately… very handy.

update [table_name] set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');

Source

April 17th, 2007

One Response to “MySQL Replace Function”

  1. Alex Panait Says:

    Very handy, I was looking for a way to replace strings in MySQL and your line really helped me.

Leave a Reply