摘要:
1 not null 2 mysql> create table t1(id int); #id字段默认可以插入空 3 mysql> desc t1; 4 + + + + + + + 5 | Field | Type | Null | Key | Default | Extra | 6 + + + 阅读全文
摘要:
1 mysql> create table t1(x tinyint); # 默认是有符号的 -128,127 2 mysql> insert into t1 values(-129),(128); 3 mysql> select * from t1; # 若是 超出范围 它会自动到 -128 12 阅读全文