utf-8和utf8mb4

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xyc_csdn/article/details/82793427

MySQL在5.5.3版本之后增加了这个utf8mb4的编码,mb4就是most bytes 4的意思,专门用来兼容四字节的unicode编码(例如:Emoji表情等),utf8mb4是utf8的超集。

utf8 utf8mb4
最大字符长度 3字节 4字节
兼容性
存储空间消耗

参考:https://blog.csdn.net/yan791124465/article/details/70738939

猜你喜欢

转载自blog.csdn.net/xyc_csdn/article/details/82793427