statement.executeUpdate("CREATE TABLE books (" +
"id INT AUTO_INCREMENT primary key NOT NULL, " +
"title VARCHAR(50) NOT NULL, " +
"author VARCHAR(50) NOT NULL, " +
"price FLOAT NOT NULL, " +
"quantity INT NOT NULL");
statement.executeUpdate("INSERT INTO books (title, author, price, quantity) value ('Java for dummies', " +
"'Tan Ah Teck', 11.11, 11");
Exception in thread "main" java.sql.SQLSyntaxErrorException: 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 1