mysql8.0.20是有bug吧,要把添加的字段引号去掉才可以执行

来源:3-6 电子书列表查询接口开发

外星人也爱编程

2021-03-11

drop table if exists ebook;
create table ebook (
id bigint not null comment ‘id’,
name varchar (50) comment ‘名称’,
category1_id bigint not null comment ‘分类1’,
category2_id bigint not null comment ‘分类2’,
description varchar (200) comment ‘描述’,
cover varchar (200) comment ‘封面’,
doc_count int comment ‘文档数’,
view_count int comment ‘阅读数’,
vote_count int comment ‘点赞数’,
primary key (id)
) engine=innodb default charset=utf8mb4 comment=‘电子书’;

写回答

1回答

甲蛙

2021-03-12

你这引号看起来是中文的,应该用英文的,可以直接从我源码里拷过来

0
0

Spring Boot+Vue3前后端分离,实战wiki知识库系统

一课掌握前后端最火框架,更有职场竞争力

2524 学习 · 1671 问题

查看课程