字符集

  • 字符集问题
    • utf-8如果保存数据中包含表情符号会崩溃
    • utf-8编码最大字符长度为3字节, 而unicode中大编码实现的表情符号(emoji)为4字节
    • 编码方式需要设置为utf8mb4
  • sql注释 COMMENT xxx
    • show create table xx; / show full columns from test; 可以显示出注释
posted @ 2019-08-24 21:56  太虚真人  阅读(146)  评论(0编辑  收藏  举报