It keeps throwing a syntax error, I've been banging my head against a wall over it, can any one spot it? I trying to use AUTO_INCREMENT to create a primary key, the tutorial on the MySQL website I don't think is very clear?
Code:
statement.executeUpdate("CREATE TABLE `"
+ beachName
+ "` ( `priKey` INT NOT NULL AUTO_INCREMENT, "
+ "`BEACH_NAME` VARCHAR(30), `SCORE` INTEGER, `DATE` VARCHAR(15), "
+ "`TIME` INTEGER, `DATEOFFILE` VARCHAR(15), PRIMARY KEY (priKey) )");
statement.executeUpdate("INSERT INTO `" + beachName
+ "` values ('" + beachName + "','" + score + "', '"
+ date + "' , '" + time + "','" + dateOfFile + "' )"
+ Statement.RETURN_GENERATED_KEYS);