UPDATE my_table SET imageurl = CONCAT( LEFT(imageurl, LENGTH(imageurl) - INDEX( imageurl, '.jpg') ) ,'.gif'\ )
You'll have to play with it to make sure there isn't an off-by-one error.
In reply to Re: Performing substitutions in MySQL
by dragonchild
in thread Performing substitutions in MySQL
by webchalkboard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |