SunQuest
 
           MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 5th, 2005, 04:42 PM
jul jul is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 14 jul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 46 m 45 sec
Reputation Power: 0
Exclamation how to store big text in Mysql???

If I have to store a list of articles with title in one column and the body of the text in the other, what shoud be the type of the column for the body? blob or text? If I upload it as .txt document, then it soud be BLOB, isn't it? But if I want to search for a word in that text, then probably I will not be able to do it in it? Do you know what I mean? Any ideas...
Search is very imprtant for me. Also how the text will be presented on the web page in one and another case?

Reply With Quote
  #2  
Old March 5th, 2005, 05:35 PM
Madpawn Madpawn is offline
My beat is correct.
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 339 Madpawn User rank is Private First Class (20 - 50 Reputation Level)Madpawn User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 22 h 3 m 33 sec
Reputation Power: 4
If you need to search the fields directly, use TEXT and upload the contents of the .txt files, not the files themselves.

Reply With Quote
  #3  
Old March 6th, 2005, 07:26 AM
jul jul is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 14 jul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 46 m 45 sec
Reputation Power: 0
Thanks, I will.

Can I save my BLOB file into database directly -the same way, as I am filling up all the fields in the table,or I can do it only through the PHP script?

Reply With Quote
  #4  
Old March 6th, 2005, 11:44 AM
Madpawn Madpawn is offline
My beat is correct.
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 339 Madpawn User rank is Private First Class (20 - 50 Reputation Level)Madpawn User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 22 h 3 m 33 sec
Reputation Power: 4
A script that will read the contents of the file into a variable and insert them will be easiest -- you might be able to work something out if you play with the LOAD DATA INFILE, but I doubt it'll be worth the trouble.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > how to store big text in Mysql???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway