下面给出了创建表的代码,而我尝试在新数据库中导入此表时出现以下错误
询问
CREATE TABLE IF NOT EXISTS `blogs` (
`blog_id` int(10) NOT NULL AUTO_INCREMENT,`blog_title` text NOT NULL,`blog_content` text NOT NULL,`created_on` datetime(6) NOT NULL,`created_by` int(20) NOT NULL,`updated_on` datetime(6) NOT NULL,`updated_by` int(20) NOT NULL,PRIMARY KEY (`blog_id`)
) Engine=InnoDB AUTO_INCREMENT=14 ;
error:#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 ‘(6) NOT NULL,created_by
int(20) NOT NULL,
updated_on
datetime(6) NOT NU’ at line 11
请指导我解决这个问题仍然需要导入很多表
最佳答案
原文链接:https://www.f2er.com/mysql/433937.html