Mysql 未知SQL错误

Mysql 未知SQL错误,mysql,sql,sqlite,Mysql,Sql,Sqlite,我正在创建一个表,它产生了一个SQL错误,我不知道为什么 statement.executeUpdate("drop table if exists group"); String group = "CREATE TABLE group" + "(groupId INT PRIMARY KEY NOT NULL, " + "groupLeader INT NOT NULL, " + "groupMembers INT NO

我正在创建一个表,它产生了一个SQL错误,我不知道为什么

    statement.executeUpdate("drop table if exists group");
    String group = "CREATE TABLE group" +
         "(groupId INT PRIMARY KEY NOT NULL, " + 
         "groupLeader INT NOT NULL, " + 
         "groupMembers INT NOT NULL, " + 
         "goals INT NOT NULL)";
    statement.executeUpdate(group);

是保留字。尝试:

statement.executeUpdate("drop table if exists `group`");
    String group = "CREATE TABLE `group`" +
         "(groupId INT PRIMARY KEY NOT NULL, " + 
         "groupLeader INT NOT NULL, " + 
         "groupMembers INT NOT NULL, " + 
         "goals INT NOT NULL)";
    statement.executeUpdate(group);

是保留字。尝试:

statement.executeUpdate("drop table if exists `group`");
    String group = "CREATE TABLE `group`" +
         "(groupId INT PRIMARY KEY NOT NULL, " + 
         "groupLeader INT NOT NULL, " + 
         "groupMembers INT NOT NULL, " + 
         "goals INT NOT NULL)";
    statement.executeUpdate(group);

是保留字。尝试:

statement.executeUpdate("drop table if exists `group`");
    String group = "CREATE TABLE `group`" +
         "(groupId INT PRIMARY KEY NOT NULL, " + 
         "groupLeader INT NOT NULL, " + 
         "groupMembers INT NOT NULL, " + 
         "goals INT NOT NULL)";
    statement.executeUpdate(group);

是保留字。尝试:

statement.executeUpdate("drop table if exists `group`");
    String group = "CREATE TABLE `group`" +
         "(groupId INT PRIMARY KEY NOT NULL, " + 
         "groupLeader INT NOT NULL, " + 
         "groupMembers INT NOT NULL, " + 
         "goals INT NOT NULL)";
    statement.executeUpdate(group);