create table if not exists test_tb1 (
test_id int unsigned auto_increment,
test_title varchar(100) not null,
test_author varchar(40) not null,
test_date date,
primary key (test_id)
)engine=InnoDB default charset=utf8;
为什么要用它?
create table if not exists test_tb1 (
test_id int unsigned auto_increment,
test_title varchar(100) not null,
test_author varchar(40) not null,
test_date date,
primary key (test_id)
)engine=InnoDB default charset=utf8;
为什么要用它?
无符号,至于为什么要用,那是你决定的。一般来说,id都是正的,当然你要负也没事,决定权在你手上。