Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between longblob and longtext in mysql?

What is difference between longblob and longtext in mysql?

What should I use to save a long topic ?

like image 456
faressoft Avatar asked Apr 05 '11 16:04

faressoft


2 Answers

BLOBs are for Binary Large Objects. If you're storing binary data in your DB, then BLOB would be the table type you want. Otherwise.. longtext.

In your case longtext.

like image 169
evilone Avatar answered Sep 30 '22 20:09

evilone


BLOB and TEXT are basically identical, except that TEXT fields have character set translation rules applied. BLOB fields do not. So with BLOB what you put in is what you get. With TEXT, what you put may not be what you get out.

like image 36
Marc B Avatar answered Sep 30 '22 19:09

Marc B