rawtohex converts raw to a character value containing its hexadecimal equivalent. The raw argument can be either RAW or BLOB datatype.