1

我试图找到与mysql相关的这个问题的答案:说一个数据库hello-there,那么它的文件夹表示是:hello@002dthere 正如mysql帮助所说:http ://dev.mysql.com/doc/refman/5.5/en/identifier-mapping.html

All nonletter characters except underscore (_), as well as letters from alphabets
that do not have uppercase/lowercase mapping (such as Hebrew) are encoded using
hexadecimal representation using lowercase letters for hex digits a..f:

0x003F -> @003f
0xFFFF -> @ffff

The hexadecimal values correspond to character values in the ucs2 double-byte 
character set. 

有没有办法找到我在 mysql 客户端发出的相应文件夹名称,例如显示数据库;有人可能会争辩:分析数据库名称并将任何非字母数字转换为 ucs2,但这是性能杀手:

mysql> select hex('-');
+----------+
| hex('-') |
+----------+
| 2D       |
+----------+

谢谢...

4

0 回答 0