If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Parse text inside a longtext column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-06, 12:07
Sudar Sudar is offline
Registered User
 
Join Date: Jul 2004
Location: Mars
Posts: 137
Thumbs up Parse text inside a longtext column

Hi

I have a table with the following structure

Post longtext
title varchar(200)

and other columns…

In the post column I have text which is HTML format.

Now I want to grab the title of each post which is present inside the <title> …</title>tag and insert it into the title column.

I have been trying lot of string functions but couldn’t accomplish it. Can any offer me some suggestion?
__________________
Sudar

--
My Blog
Reply With Quote
  #2 (permalink)  
Old 07-01-06, 06:08
anjanesh anjanesh is offline
Registered User
 
Join Date: Feb 2005
Location: Mumbai, India
Posts: 161
RegExp returns 0 or 1 - there doesnt seem to be any option to return the matches.

So you'll have to actually do this using some scripting language.
__________________
MySQL 5.1
Reply With Quote
  #3 (permalink)  
Old 07-01-06, 12:38
Sudar Sudar is offline
Registered User
 
Join Date: Jul 2004
Location: Mars
Posts: 137
Hi Anjanesh,

Thanks for the reply.

Even I was thinking that this will not be possible using MySQL alone and thanks for confirming it. I will try to do it using PHP.
__________________
Sudar

--
My Blog
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On