drop table if exists UserTb1;
create table UserTb1
(
id int(11) primary key auto_increment,
username VARCHAr(20) ,
password VARCHAr(30)
);
drop table if exists EscapedPeopleTb1;
create table EscapedPeopleTb1
(
id int(11) primary key auto_increment,
name VARCHAr(20) not null,
gender VARCHAr(20),
age int(11),
IDNo VARCHAr(20),
address VARCHAr(100),
crimeRecord varchar(200),
pic VARCHAr(100)
);
drop table if exists VehicleInfoTb1;
create table VehicleInfoTb1
(
id int(11) primary key auto_increment,
name varchar(20),
idno varchar(20),
license varchar(20),
createTime varchar(30),
faultRecord varchar(300),
penalty double(18)
)
;
drop table if exists UploadFileTb1;
create table UploadFileTb1
(
id int(11) primary key auto_increment,
uploadTime VARCHAr(20),
FileDesc VARCHAr(200),
FilePath VARCHAr(100)
)
;
创建mysql数据库出现ERROR 1064 (42000): You have an error in your SQL syntax; check the ......问题
答案:2 悬赏:50 手机版
解决时间 2021-02-24 02:18
- 提问者网友:孤山下
- 2021-02-23 22:35
最佳答案
- 五星知识达人网友:雾月
- 2021-02-23 23:08
mysql> create table VehicleInfoTb1
-> (
-> id int(11) primary key auto_increment,
-> name varchar(20),
-> idno varchar(20),
-> license varchar(20),
-> createTime varchar(30),
-> faultRecord varchar(300),
-> penalty double(18)
-> )
-> ;
ERROR 1064 (42000): 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 9
double(18) 修改一下
mysql> create table VehicleInfoTb1
-> (
-> id int(11) primary key auto_increment,
-> name varchar(20),
-> idno varchar(20),
-> license varchar(20),
-> createTime varchar(30),
-> faultRecord varchar(300),
-> penalty double
-> );
Query OK, 0 rows affected (0.09 sec)
mysql>
通过.
-> (
-> id int(11) primary key auto_increment,
-> name varchar(20),
-> idno varchar(20),
-> license varchar(20),
-> createTime varchar(30),
-> faultRecord varchar(300),
-> penalty double(18)
-> )
-> ;
ERROR 1064 (42000): 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 9
double(18) 修改一下
mysql> create table VehicleInfoTb1
-> (
-> id int(11) primary key auto_increment,
-> name varchar(20),
-> idno varchar(20),
-> license varchar(20),
-> createTime varchar(30),
-> faultRecord varchar(300),
-> penalty double
-> );
Query OK, 0 rows affected (0.09 sec)
mysql>
通过.
全部回答
- 1楼网友:撞了怀
- 2021-02-23 23:38
near 'creat database shiyun,create少写了字母。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯