I am trying to create a table using java for mysql. The code is below.
Statement stmt2 = con.createStatement();
String sql = "CREATE TABLE " + libcard +
"(Title INTEGER, " +
" Director VARCHAR(255), " +
" dateBorrowed DATE, " +
" dueDate DATE)";
stmt.executeUpdate(sql);
but there is always error. :: Exception message is given below :_
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 '23232.0(Title INTEGER, Director VARCHAR(255), dateBorrowed DATE, dueDate DATE' at line 1
23232.0?