摘要:
default :初始值设置,插入记录时,如果没有明确为字段赋值,则自动赋予默认值。 例子:create table tb6( id int primary key auto_increment, name varchar(20) not null, age int not null default 阅读全文
摘要:
auto_increment :自动编号,一般与主键组合使用。一个表里面只有一个自增默认情况下,起始值为1,每次的增量为1。 例子:create table tb5( id int primary key auto_increment, name varchar(20))auto_increment 阅读全文