首页 >数据库 >mysql教程 >MySQL获取中文unicode 编码_MySQL

MySQL获取中文unicode 编码_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-01 13:44:102876浏览

bitsCN.com

 

SELECT ORD(CONVERT('中' USING ucs2)) AS chinese;

 

===============

20013

 

SELECT HEX(CONVERT('中' USING ucs2)) AS chinese;

===============

4E2D

 

摘自 ylqmf的专栏

bitsCN.com
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn