← Analytics / analytics / analytics-engine / sql-reference
Kódovací funkce
bin New
Použití:
bin(<expression>)bin vrací řetězec obsahující binární reprezentaci svého argumentu.
Příklady:
-- get the binary representation of 1
bin(1)
-- get the binary representation of a string`
bin('abc')hex New
Použití:
hex(<expression>)hex vrací řetězec obsahující šestnáctkovou reprezentaci svého argumentu.
Příklady:
-- get the hexadecimal representation of 1
hex(1)
-- get the hexadecimal representation of a string`
hex('abc')