摘要: 1 not null 2 mysql> create table t1(id int); #id字段默认可以插入空 3 mysql> desc t1; 4 + + + + + + + 5 | Field | Type | Null | Key | Default | Extra | 6 + + + 阅读全文
posted @ 2018-08-05 18:04 mumupa0824 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1 mysql> create table t1(x tinyint); # 默认是有符号的 -128,127 2 mysql> insert into t1 values(-129),(128); 3 mysql> select * from t1; # 若是 超出范围 它会自动到 -128 12 阅读全文
posted @ 2018-08-05 09:23 mumupa0824 阅读(1047) 评论(0) 推荐(0) 编辑