Mysql创建表过程中报1064错误
发布时间:2020-06-18 06:23:08
来源:51CTO
阅读:7528
作者:白羊IT
我在自己搭建的mysql服务中,在使用create table创建表时报了1064错误,尝试网上找了各种解决方法,最后还是被自己试着解决了。解决的有的稀里糊涂的,毕竟我自己对数据库知识还没个很清晰的认知。废话不多说了,下面看我的解决历程吧。
自己创建表的初衷:想要从无到有的尝试
set names utf8
set foreign_key_checks=0
drop table if exists `own_reimbursement`;
create table `own_reimbursement` (
`id` int(10) not null AUTO_INCREMENT,
`start_time` date not null default,
`end_time` date not null default,
`travel_time` int(3) not null default,
`place_name` char(30) default comment '地名',
`project_name` char(30) default comment '项目名称',
`venue_name` char(30) default comment '场馆名称',
`personnel_name