gpt4 book ai didi

mysql - mysql中长utf8字符串的理想数据类型

转载 作者:行者123 更新时间:2023-11-29 04:59:13 24 4
gpt4 key购买 nike

mysql中VARCHAR类型只支持255个字符的数据长度是真的吗?如果是真的,UTF8 字符串的哪种数据类型对长文本有用?我正在使用 utf8_persian_ci 数据类型。

请注意,TEXT 数据类型与 utf8_persian_ci 有问题。

最佳答案

Is it true that VARCHAR type in mysql only suppory 255 characters data length?

Not since MySQL 5.0.3, according to the documentation :

The length can be specified as a value from 0 to 255 before MySQL 5.0.3, and 0 to 65,535 in 5.0.3 and later versions.

关于mysql - mysql中长utf8字符串的理想数据类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3346580/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com