Home >Database >Mysql Tutorial >MySQL获取中文unicode 编码_MySQL

MySQL获取中文unicode 编码_MySQL

WBOY
WBOYOriginal
2016-06-01 13:44:102852browse

bitsCN.com

 

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

 

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

20013

 

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

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

4E2D

 

摘自 ylqmf的专栏

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn