create table if not exisit use(
id int,
name varchar(20)
、、);
错误代码: 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 'use(
id int primary key auto_increment,
name varchar(20),
gender varchar(1' at line 1
https://blog.csdn.net/qq_41548233/article/details/87817070 这个问题的原因有很多 都在这里了 你参照对比一下应该就知道了【望采纳 谢谢】
1、exisit 改成 EXISTS
2、mysql不能使用关键字作为表名
use是mysql的关键字,你可以改成t_use
具体语句如下:
CREATE TABLE IF NOT EXISTS t_use(
id int,
name varchar(20));
首先,能不能把完整的sql语句发出来??