Skip to content

Commit

Permalink
update sql docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhao committed Aug 19, 2024
1 parent 3c4046c commit 4f60ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic/7.MySQL数据类型.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ CREATE TABLE demo_test (

-- 数字数据类型既可以 UNSIGNED 属性修饰,也允许使用 SIGNED 属性。默认是 SIGNED 有符号的,可为负的。

-- 对于Integer类型括号中的数字称为字段的显示宽度。显示宽度并不影响可以存储在该列中的最大值。INT(5) 和 INT(11)可以存储相同的最大值,都是INT最大值。
-- 对于INTEGER类型,括号中的数字称为字段的显示宽度。显示宽度并不影响可以存储在该列中的最大值。INT(5) 和 INT(11)可以存储相同的最大值,都是INT最大值。
-- int(11)表示显示宽度,当列设置为UNSIGNED ZEROFILL时,INT(11)才有意义,其表示的意思为如果要存储的数字少于11个字符,则这些数字将在左侧补零。
-- 对于MySQL 8.0.17,Int类型的列宽度属性已经被deprecated

Expand Down

0 comments on commit 4f60ec6

Please sign in to comment.