mysql hex函式 MySQL hex 函式

2021-10-17 19:38:28 字數 451 閱讀 2967

hex(n_or_s)

if n_or_s 是乙個數字, 返回n的十六進製制值的字串表示,其中n是乙個長整型(bigint)數。這同等於 conv(n,10,16).

如果n_or_s是乙個字串,返回n_or_s在n_or_s的每個字元轉化為兩個十六進製制數字的十六進製制字串表示。

mysql> select hex(255);

| hex(255) |

| ff |

1 row in set (0.00 sec)

mysql> select 0x616263;

| 0x616263 |

| abc |

1 row in set (0.00 sec)

¥ 我要打賞

糾錯/補充

收藏加qq群啦,易百教程官方技術學習群

注意:建議每個人選自己的技術方向**,同乙個qq最多限加 3 個群。

mysql 奇數函式 MySQL常用函式

mysql運算子 比較運算子的結果是1 true 0 false 或null。這些函式可用於數字或者字串。expr between min and max 如果expr大於或者等於min,並且小於等於max,返回1,否則返回0。它等價於表示式 expr min and expr max expr i...

mysql 等待函式 mysql 內建函式

select convert 125.83 signed select cast 125.83 as signed 字串函式 檢視字元的ascii碼值ascii str str是空串時返回0 select ascii a 檢視ascii碼值對應的字元char 數字 select char 97 拼接...

mysql相關函式 MySql 相關函式

select group concat column name from table name group by table name,table name2.field 函式自定義排序 select from user where type in 1,2,3 order by field colu...