How can I search inside Blob column in MySQL for some values ? and Is that possible ?
A BLOB is a binary large object that can hold a variable amount of data. The four BLOB types are TINYBLOB , BLOB , MEDIUMBLOB , and LONGBLOB . These differ only in the maximum length of the values they can hold. The four TEXT types are TINYTEXT , TEXT , MEDIUMTEXT , and LONGTEXT .
You should be able to search blobs like other text fields:
SELECT *
FROM tablename
WHERE blob_field_name LIKE '%value%'
One thing to notice is that search will be case-sensitive!
Anyway, if possible, it's better to use a TEXT
field.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With