LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-15-2009, 12:05 PM   #1
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Rep: Reputation: 30
Update part of a URL to another URL in MySQL


Hi there,
I'd ask this in the mysql forums, but they're not as helpful

Here's my situation.. I have about 5k of data i need to update.. this in my current database:
http://www.siteA.com/images/picture.jpg

I want to change it to this:

http://www.siteB.com/product/images/picture.jpg

So basically, I want to change only part of the URL, not the entire URL.. is there a way to do this?

so only this part of the first url:
http://www.siteA.com/

to

http://www.siteB.com/product/


thanks!!
 
Old 02-15-2009, 12:37 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Enter "HELP REPLACE;" in mysql.
The example uses a URL.
 
Old 02-15-2009, 10:02 PM   #3
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Original Poster
Rep: Reputation: 30
hahha nice! thanks you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting part of URL: How do I do this? Use Apache or PHP? vxc69 Programming 1 11-06-2008 02:28 PM
ERROR The requested URL could not be retrieved While trying to retrieve the URL: /re Niceman2005 Linux - General 1 06-29-2005 10:51 AM
MySQL bulk URL update - regular expressions? lowpro2k3 Programming 1 06-13-2005 04:42 PM
MYSQL PHP - text to display as url xtremedesign Linux - Newbie 3 04-01-2005 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration