|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
If you need to search the fields directly, use TEXT and upload the contents of the .txt files, not the files themselves.
|
|
#3
|
|||
|
|||
|
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? |
|
#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.
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > how to store big text in Mysql??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|