Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
将数字或字符串转换为十六进制表示。
x
HEX(x);
mysql> select hex(3); +--------+ | hex(3) | +--------+ | 3 | +--------+ 1 row in set (0.00 sec) mysql> select hex('3'); +----------+ | hex('3') | +----------+ | 33 | +----------+ 1 row in set (0.00 sec) -- 输入值为 VARBINARY 类型。 mysql> select hex(x'abab'); +-------------+ | hex('ABAB') | +-------------+ | ABAB | +-------------+