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,
);
報錯 #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
嗯 對 最后一個字段后不需要添加逗號^_^...
2014-08-30
明白了,,最后一句加了一個,號,,原來不是跟其他語言一樣,我以為多一個,是良好的語言書寫習慣。