ThinkPHP3.1.3第12课建立后台项目与验证码调用视频中建立后台数据表的时候出现错误

浏览:769 发布日期:2013/07/22 分类:求助交流
创建数据表的代码是:
create table hd_user(id int unsigned not null primary key auto_increment,
username char(20) not null default '',password char(32) not null default '',
logintime int(10) unsigned not null,loginip varchar(30) not null,'lock' tinyint(1) unsigned not null default 0,unique(username)) engine myisam default charset utf8;
错误提示如下:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lock' tinyint(1) unsigned not null default 0,unique(username)) engine myisam default charset utf8; at line 3
有哪位能告诉我原因吗?在此先谢谢了
最佳答案
评论( 相关
后面还有条评论,点击查看>>