Home > Database > Mysql Tutorial > body text

MySQL 中int和integer什么区别

WBOY
Release: 2016-06-07 15:18:23
Original
3486 people have browsed it

环境: MySQLSever 5.1 问题:MySQL 中int和integer什么区别 答案: 没有区别 分析: · INT[(M)][UNSIGNED] [ZEROFILL] 普通大小的整数。带符号的范围是-2147483648到2147483647。无符号的范围是0到4294967295。 ·INTEGER[(M)] [UNSIGNED] [ZEROFILL] 这是

环境: MySQLSever 5.1

 

问题:MySQL 中int和integer什么区别

答案:没有区别

 

分析:

· INT[(M)][UNSIGNED] [ZEROFILL]

 

普通大小的整数。带符号的范围是-2147483648到2147483647。无符号的范围是0到4294967295。

 

·INTEGER[(M)] [UNSIGNED] [ZEROFILL]

 

这是INT的同义词。使用两个名字只是为了简化和方便,没有本质上的区别。

 

参考资料:http://zhidao.baidu.com/question/96012112



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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template