Just another Perl shrine | |
PerlMonks |
Performing substitutions in MySQLby webchalkboard (Scribe) |
on Apr 12, 2005 at 13:20 UTC ( [id://446975]=perlquestion: print w/replies, xml ) | Need Help?? |
webchalkboard has asked for the wisdom of the Perl Monks concerning the following question: Hello, Firstly sorry this isn't strictly a Perl related question (although this problem has arrisen thanks to a bug in my last Perl script :) but i'm sure that people on here will know how to do what i'm trying to do. Basically I have a database with lots and lots of records in it, there is a field called imageurl, within which I have entries like blablah.jpg. I need to change every imageurl field which ends in .jpg to .gif. Now I could write a little perl script which does this for me automatically, but i'm sure there must be a way of doing substitions in MySQL directly? Does anyone here have any experience they could share with me? Thanks, Tom Learning without thought is labor lost;
thought without learning is perilous. - Confucius
WebChalkboard.com | For the love of art...
Back to
Seekers of Perl Wisdom
|
|