Home  >  Article  >  Database  >  mysql 中,定义字段类型时 int 后面那个 4 ,有什么用?

mysql 中,定义字段类型时 int 后面那个 4 ,有什么用?

WBOY
WBOYOriginal
2016-06-06 09:37:181429browse

mysql

在 mysql 数据库中,建一个表,有个字段类型 : int(4)。向这个字段插入值: 5555555,插曲成功。且查询出来的值,也是 5555555。所以我想问: 定义时 int 后面那个 4 ,有什么用?

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