
请问下面的代码哪错了??
CREATETABLE`message`(`id`tinyint(1)NOTNULLauto_increment,`user`varchar(25)NOTNULL,`ti...
CREATE TABLE `message`(
`id` tinyint(1) NOT NULL auto_increment,
`user` varchar(25) NOT NULL,
`title` varchar(50) NOT NULL,
`content` tinytext NOT NULL,
`lastdate` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=innodb default CHARSET =gbk AUTO_INCREMENT;
提示的错误是
#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 8 展开
`id` tinyint(1) NOT NULL auto_increment,
`user` varchar(25) NOT NULL,
`title` varchar(50) NOT NULL,
`content` tinytext NOT NULL,
`lastdate` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=innodb default CHARSET =gbk AUTO_INCREMENT;
提示的错误是
#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 8 展开
展开全部
CREATE TABLE `message`(
`id` tinyint(1) NOT NULL auto_increment,
`user` varchar(25) NOT NULL,
`title` varchar(50) NOT NULL,
`content` tinytext NOT NULL,
`lastdate` date NOT NULL,
PRIMARY KEY (`id`)
)
用标准sql,门上面这些就可以了,其他的不需要。mysql不是很熟悉,你再看看自增长字段是不是那么写
`id` tinyint(1) NOT NULL auto_increment,
`user` varchar(25) NOT NULL,
`title` varchar(50) NOT NULL,
`content` tinytext NOT NULL,
`lastdate` date NOT NULL,
PRIMARY KEY (`id`)
)
用标准sql,门上面这些就可以了,其他的不需要。mysql不是很熟悉,你再看看自增长字段是不是那么写
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询