MySQL supports an extension for optionally specifying the display width of integer data types in parentheses following the base keyword for the type. For example,
INT(4)
specifies anINT
with a display width of four digits.
When used in conjunction with the optional (nonstandard)
ZEROFILL
attribute, the default padding of spaces is replaced with zeros. For example, for a column declared asINT(4) ZEROFILL
, a value of5
is retrieved as0005
.
- 编码请使用
utf8mb4
(官网编码相关介绍)
The utf8mb3 character set is deprecated and will be removed in a future MySQL release. Please use utf8mb4 instead. Although utf8 is currently an alias for utf8mb3, at some point utf8 will become a reference to utf8mb4. To avoid ambiguity about the meaning of utf8, consider specifying utf8mb4 explicitly for character set references instead of utf8.
网友评论