29

How can I search inside Blob column in MySQL for some values ? and Is that possible ?

Zamblek
  • 789
  • 1
  • 12
  • 21

1 Answers1

36

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.

hichris123
  • 10,145
  • 15
  • 56
  • 70
Zilverdistel
  • 1,571
  • 11
  • 10