聘我网

新概念招聘3.0

MySQL中varchar(N)限定的是字符数还是字节数?

vote up0vote downstar

rt...

 

4 个答复

vote up0vote downcheck

字符数:

mysql> create table t( name varchar(4) ) charset=utf8;

mysql> insert into t value('中文内容');
Query OK, 1 row affected (0.00 sec)

mysql> select * from t;
+--------------+
| name         |
+--------------+
| 中文内容     |
+--------------+
1 rows in set (0.00 sec)
链接
vote up0vote down

If my porlbem was a Death Star, this article is a photon torpedo.

链接
vote up0vote down

affordable life insurance hiu life insurance odicht

链接
vote up0vote down

best life insurance dyvlsb senior life insurance ihz

链接

您的回答





不是您要找的问题? 浏览其他含有标签 的问题或者 自己问个.