Home  >  Article  >  Database  >  MySQL 中int和integer什么区别

MySQL 中int和integer什么区别

WBOY
WBOYOriginal
2016-06-07 15:18:233452browse

环境: 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



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