首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

mysql 建表解决方案

2012-03-14 
mysql 建表mysqlcreatetableorder(merIDint(10)notnullauto_increment,CheckDatevarchar(10),orderNum in

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左边那个符号.

热点排行