SQL Query with binary data (PHP and MySQL)

前端 未结 4 1515
忘了有多久
忘了有多久 2020-12-03 14:11

This site had helped me a lot in the past, but now I am lost. Thanks in advance for your guidance.

I have a MySQL table that contains a Binary value, like the exampl

4条回答
  •  青春惊慌失措
    2020-12-03 14:57

    The last posting from jixiang pointed me into the right direction for searching a binary field:

    SELECT * FROM test WHERE yourBinaryColumn = x'binarystuffdata';
    

    This works for me...

提交回复
热议问题