【前言】
本文总结下SQL语句,
举个例子:
create table sp_email( id int(11) not null auto_increment, from_id int(11) not null comment'发送者id', to_id int(11) not null comment'接收者id', title varchar(50) not null comment'标题', file varchar(255) default null comment'文件', hasfile smallint(1) default '0' comment'是否有附件', filename varchar(255) default null comment'文件原始名', content text comment'内容', addtime int(11) default null comment'添加时间', isread smallint(1) default '0' comment'是否已读', primary key(id) )engine=myisam auto_increment=1 default charset=utf8;
①后面的comment为注释,方便开发人员分辨
②auto_increment=1表示从1开始自增
③
.