1.说明:在能够满足需求的情况下,尽量选择占用空间小的类型
2.如何定义一个无符号的整数:(以tinyint为例子)
create table t10 (id tinyint); //默认时有符号的
create table t11(id tinyint unsigned); //无符号
3.实际操作演示
1.说明:在能够满足需求的情况下,尽量选择占用空间小的类型
2.如何定义一个无符号的整数:(以tinyint为例子)
create table t10 (id tinyint); //默认时有符号的
create table t11(id tinyint unsigned); //无符号
3.实际操作演示