I'm trying to execute the following commands:
stmt=con.prepareStatement("CREATE DATABASE ?");
stmt.setString(1, nombreBase);
stmt.executeUpdate();
Doing about select
or insert
works but doing so with these commands does not allow me to do so throws me a syntax error. Why is this happening?