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 > Content bases searching in MySQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-16-03, 08:52
harry_barry19 harry_barry19 is offline
Registered User
 
Join Date: Dec 2003
Posts: 2
Content bases searching in MySQL

Hi all,

I am new to MySQL database (though i am comfortable with Oracle), so please help me out.

1. My requirement is that i have some XML data which i want to store in the database. Should this be stored in the longblob or longtext data type? OR is there any other way out to store and retrieve this? Can someone share their experiences and possibly with sample code?


2. I have large content data which i would like to store in the database. Should this be stored in the longtext data type? I also require to perform content based searching on this data. I am not aware if this is possible and if yes what is the way to do it? Just to give an idea we can do content based searching in Oracle by creating context indexes and then use the CONTAINS clause in the where clause! How to achieve this in MySQL?


Regards
Harry
Reply With Quote
  #2 (permalink)  
Old 12-16-03, 14:17
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: Content bases searching in MySQL

Quote:
Originally posted by harry_barry19
Hi all,

I am new to MySQL database (though i am comfortable with Oracle), so please help me out.

1. My requirement is that i have some XML data which i want to store in the database. Should this be stored in the longblob or longtext data type? OR is there any other way out to store and retrieve this? Can someone share their experiences and possibly with sample code?


2. I have large content data which i would like to store in the database. Should this be stored in the longtext data type? I also require to perform content based searching on this data. I am not aware if this is possible and if yes what is the way to do it? Just to give an idea we can do content based searching in Oracle by creating context indexes and then use the CONTAINS clause in the where clause! How to achieve this in MySQL?


Regards
Harry
Hello,

1. use the longtext (you can use LIKE ins select)

2. check documentation at http://www.mysql.com and search FULTEXT SEARCH (something like Intermedia in Oracle)
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