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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:37:18
Original
1478 people have browsed it

mysql

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

Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template