我想执行这个简单的命令:无法创建一个表 - 错误1064(42000):你在你的SQL语法错误
create table foo
(clo int primary key unsigned auto_increment);
但我得到这个错误:
ERROR 1064 (42000): 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 'unsigned auto_increment)' at line 2
仅供参考:http://dev.mysql.com/doc/refman/5.1/en/create-table.html。特别是,查看语法中的column_definition和data_type非终端。 – outis 2010-05-03 14:21:07