Skip to content

Returns the hexadecimal representation of a string or number.

func.hex(<expr>)
func.hex(255)
┌──────┐
'FF'
└──────┘
HEX(<expr>)
SELECT HEX(255);
┌────┐
│ FF │
└────┘