日期:2014-05-16  浏览次数:20669 次

mysql 建表
mysql>   create   table   order(merID   int(10)   not   null   auto_increment,CheckDate
varchar(10),orderNum 'int(15),orderAmt   int(10));

总提示这样的错误:
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   ' 'orde
r '( 'merID '   int(10)   not   null   auto_increment, 'CheckDate '   varchar(10), 'orderNu '   at
line   1

小弟刚开始学,请详细一些。谢谢各位大侠了。


------解决方案--------------------
也不是不能用,如果你一定要用的话就使用反引号 "` "键盘上1左边那个符号.