比如建立表格,表格ID需要自增
将ID設定成主鍵,并配置auto_increment
例:
create table test(
id int(4) not null primary key auto_increment
username char(20)
passwd char(20)
)
比如建立表格,表格ID需要自增
将ID設定成主鍵,并配置auto_increment
例:
create table test(
id int(4) not null primary key auto_increment
username char(20)
passwd char(20)
)