Home > Backend Development > PHP Tutorial > 数据库到底用不用tinyint

数据库到底用不用tinyint

WBOY
Release: 2016-06-06 20:42:13
Original
1268 people have browsed it

一份文档中说:使用TINYINT来代替ENUM类型
另一份文档说:尽快少TINYINT 有一些数据库对TINYINT支持不好

回复内容:

一份文档中说:使用TINYINT来代替ENUM类型
另一份文档说:尽快少TINYINT 有一些数据库对TINYINT支持不好

用,什么范围就用什么。
至于以后,换的东西不差这个。

用ENUM不如用TINYINT,用TINYINT不如另加表保存枚举数据

我记得在Mysql里面 enum的原型是tinyint吧

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