Mysql #1064-您的SQL语法有错误';(14) 非空,`ID_MEMBER`mediumint(8)无符号非空默认值';0'`ip`';在3号线

Mysql #1064-您的SQL语法有错误';(14) 非空,`ID_MEMBER`mediumint(8)无符号非空默认值';0'`ip`';在3号线,mysql,sql,create-table,Mysql,Sql,Create Table,我收到这个错误: #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 '(14) NOT NULL, `ID_MEMBER` mediumint(8) unsigned NOT NULL default '0', `ip` ' at line 3 运行此脚本时:

我收到这个错误:

#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 '(14) NOT NULL, 
`ID_MEMBER` mediumint(8) unsigned NOT NULL default '0', `ip` ' at line 3
运行此脚本时:

  CREATE TABLE IF NOT EXISTS `MVElog_online` (
  `session` varchar(32) NOT NULL default '0',
  `logTime` timestamp(14) NOT NULL,
  `ID_MEMBER` mediumint(8) unsigned NOT NULL default '0',
  `ip` int(10) unsigned NOT NULL default '0',
  `url` text NOT NULL,
  PRIMARY KEY  (`session`),
  KEY `logTime` (`logTime`),
  KEY `ID_MEMBER` (`ID_MEMBER`)
) ENGINE=MyISAM;

错误是什么意思?我做错了什么?

时间戳
不应该有长度,(它是
时间戳
不是
时间戳(14)


对我刚刚注意到了!非常感谢。仔细阅读错误,它会准确地告诉您问题出在哪里:
timestamp(14)
是一个语法错误,意味着您正在将不属于您的东西放在一起。它告诉您阅读有关如何编写SQL查询的手册:
CREATE TABLE IF NOT EXISTS `MVElog_online` (
  `session` varchar(32) NOT NULL default '0',
  `logTime` timestamp NOT NULL,                 -- HERE
  `ID_MEMBER` mediumint(8) unsigned NOT NULL default '0',
  `ip` int(10) unsigned NOT NULL default '0',
  `url` text NOT NULL,
  PRIMARY KEY  (`session`),
  KEY `logTime` (`logTime`),
  KEY `ID_MEMBER` (`ID_MEMBER`)
) ENGINE=MyISAM;