时间:2021-07-01 10:21:17 帮助过:4人阅读
mysql> select ascii(‘a‘);
+------------+
| ascii(‘a‘) |
+------------+
| 97 |
+------------+
1 row in set (0.00 sec)
mysql> select bin(10);
+---------+
| bin(10) |
+---------+
| 1010 |
+---------+
1 row in set (0.00 sec)
mysql> select oct(10);
+---------+
| oct(10) |
+---------+
| 12 |
+---------+
1 row in set (0.00 sec)
mysql> select hex(10);
+---------+
| hex(10) |
+---------+
| A |
+---------+
1 row in set (0.00 sec)
mysql> select char(77,121,83,81,‘76‘);
+-------------------------+
| char(77,121,83,81,‘76‘) |
+-------------------------+
| MySQL |
+-------------------------+
1 row in set (0.00 sec)
mysql> select char(77,77.5,‘77.3‘);
+----------------------+
| char(77,77.5,‘77.3‘) |
+----------------------+
| MNM |
+----------------------+
1 row in set, 1 warning (0.00 sec)
MySQL内置函数-单行函数(进制换算函数)
标签:数字 fonts warning class 序列 style 就是 一个 oct