Link to home
Start Free TrialLog in
Avatar of Victor Kimura
Victor KimuraFlag for Canada

asked on

update mysql table with a prepend text

Hi,

I'd like to update a set of records where the column name='picture' where id>='1'.
id is the primary key, auto increment field.

The picture field has values like:
/dev/images/profile/2-6-1.png

But I'd like like to prepend the url with:
http://cosmeticguide.com/
so the picture field values should be:
http://cosmeticguide.com/dev/images/profile/2-6-1.png

How do I do this with one mysql statement?

Thank you,
vkimura
ASKER CERTIFIED SOLUTION
Avatar of theGhost_k8
theGhost_k8
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Victor Kimura

ASKER

Thank you!