Convert MYSQL HEX to string
Hexadecimal literal values are
written using X'string'
or 0xstring
notation, where string contains hexadecimal digits (0..9, A..F
).
You can also transform this value HEX
value also with PHP instead of SELECT *, HEX(column) as column_name ...
SQL.
Inserting string to the table will be easy just "INSERT INTO table (column) VALUES HEX(?)"
or with Hexadecimal Literal string starting with 0x
or X'string'
.