[MySQL] Convert a VARBINARY column to a string

Created on November 28, 2026

You can use CAST() to convert data from a VARBINARY column to a string. In the example below, target_column in target_table is a VARBINARY column, and the query selects its values as strings.

select cast(target_column as char) from target_table;
MySQL