2020年4月24日

SQL DEFAULT 约束 auto_increment

摘要: SQL DEFAULT 约束 DEFAULT 约束用于向列中插入默认值。 如果没有规定其他的值,那么会将默认值添加到所有的新记录。 auto_increment是用于主来键自动增长的,从1开始增长,自当你把第百一条记录删除时,再插入第二度跳数据时,主键值是问2,不是1 阅读全文

posted @ 2020-04-24 14:37 hushzhang 阅读(490) 评论(0) 推荐(0) 编辑

【MySQL】 unsigned使用

摘要: 案例create table yyy( `id` int unsigned not null auto_increment, primary key (`id`));1234案例分析针对上边的表插如一条数据 insert into yyy values(255); 这时我们在插入一条数据,这个时候会 阅读全文

posted @ 2020-04-24 14:36 hushzhang 阅读(1112) 评论(0) 推荐(0) 编辑

导航