How can I search inside Blob column in MySQL for some values ? and Is that possible ?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
You should be able to search blobs like other text fields:
One thing to notice is that search will be case-sensitive!
Anyway, if possible, it's better to use a
TEXT
field.If you want to make it work for both uppercase, lowercase or mixed... Make the search string in lower case before applying in mysql query and use
LOWER()
mysql function in query. make sure to escape string for mysql.