我是靠谱客的博主 生动大山,这篇文章主要介绍MySQL server version for the right syntax to use near 'type = InnoDB' at line 25,现在分享给大家,希望可以做个参考。
使用PowerDesigner 生成了sql脚本(摘抄部分):
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2017/8/29 11:15:50 */ /*==============================================================*/ /*==============================================================*/ /* Table: f_discuss_service_predetermine */ /*==============================================================*/ create table f_discuss_service_predetermines ( ID bigint(20) not null comment '主键', TENANT_ID varchar(200) comment '租户Id', CREATOR varchar(80) not null comment '创建人名称', CREATE_USER_ID bigint(20) not null comment '创建人用户ID', CREATE_TIME datetime not null comment '创建时间', MODIFY_USER varchar(80) comment '最后修改人名称', MODIFY_USER_ID bigint(20) comment '最后修改人用户ID', MODIFY_TIME datetime comment '最后修改时间', BUSINESS_ID bigint(20) not null comment '业务id', SERVICE_STAGE_CODE varchar(20), SERVICE_ID bigint(20), BINDING_SERVCIE_ID bigint(20), primary key (ID) ) type = InnoDB; alter table f_discuss_service_predetermine comment '服务预定信息';
执行错误:
复制代码
1
2[Err] 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 'type = InnoDB' at line 25
可将这语句删除,再执行。
也可以改成 : ENGINE=InnoDB
注:这里表会采用默认引擎,MySQL5.5.5版本之后采用的默认引擎就是InnoDB
最后
以上就是生动大山最近收集整理的关于MySQL server version for the right syntax to use near 'type = InnoDB' at line 25的全部内容,更多相关MySQL内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复