Home  >  Article  >  Database  >  mysql-MYSQL建表字段问题 10101010

mysql-MYSQL建表字段问题 10101010

WBOY
WBOYOriginal
2016-06-06 09:42:16960browse

mysql字段char数据库

想请问下:MYSQL建立一个表的字段假如是用来存储用户名的,那这个字段要用什么的比较好,我用阿里云的MYSQL,他死活不让我建,好像是字段长度问题;
有个问题就是假如我用CHAR类型,然后长度设置30,那么用户注册的话用户名只有20,注册成功了之后下次登录会不会查询不到用户名呢?我看百度说如果不足设置的长度,会自己填充进去那查询会不会出错呢,求大哥哥讲讲

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn