主键id | 用户名 | 性别 | 体重(KG) | 生日 | 工资 | 上次登入时间 | 个人简介 |
---|---|---|---|---|---|---|---|
我们不妨让其都定长,可以大大提高查询速度。
因此想到另建一张表,把username、intro 单独拿出来。
create table member(
id int unsigned auto_increment primary key,
username char(20) not null default '',
gender char(1) not null default '',
weight tinyint unsigned not null default 0,
birth date not null default '0000-00-00',
salary decimal(8,2) not null default 0.00,
lastlogin int unsigned not null default 0
)engine myisam charset utf8;