DROP TABLE IF EXISTS `imooc_admin`;
CREATE TABLE `imooc_admin`(
`id` tinyint unsigned auto_increment Key,
`username` varchar(20) not null unique,
`password` char(32) not null,
`email` varchar(50) not null,
);
報(bào)錯(cuò) #1064 - 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 ')' at line 6
2014-08-30
嗯 對(duì) 最后一個(gè)字段后不需要添加逗號(hào)^_^...
2014-08-30
明白了,,最后一句加了一個(gè),號(hào),,原來(lái)不是跟其他語(yǔ)言一樣,我以為多一個(gè),是良好的語(yǔ)言書寫習(xí)慣。