I would like to find all rows in a table containing the character 0x02.For clarity, I'm looking for something like:
SELECT * FROM table WHERE column LIKE '% 0x02%'
Hexadecimal literals? A %-0x25
%
0x25
SELECT * FROM table WHERE column LIKE 0x250225
The validation guide reminds me that the syntax is 0xnot strictly an SQL standard, so maybe use insteadX''
0x
X''
SELECT * FROM table WHERE column LIKE X'250225'
I would go with
SELECT * FROM table WHERE LOCATE(X'02', column) > 0