码迷,mamicode.com
首页 > 其他好文 > 详细

字符集

时间:2019-08-24 23:19:20      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:字节   表情   保存   utf8   rom   comment   table   sql   崩溃   

  • 字符集问题
    • utf-8如果保存数据中包含表情符号会崩溃
    • utf-8编码最大字符长度为3字节, 而unicode中大编码实现的表情符号(emoji)为4字节
    • 编码方式需要设置为utf8mb4
  • sql注释 COMMENT xxx
    • show create table xx; / show full columns from test; 可以显示出注释

字符集

标签:字节   表情   保存   utf8   rom   comment   table   sql   崩溃   

原文地址:https://www.cnblogs.com/oklizz/p/11406257.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!