how to create user defined table (table name is in a string ) oracle using java
String Tablename="student";
stmt=con.prepareStatement("create table"+Tablename+"(name varchar(12),class varchar(12))");
stmt.executeUpdate();
with out string i.e user defined table name it works fine:
stmt=con.prepareStatement("create table student (name varchar(12),class varchar(12))");
but the above listed versions which takes string as user name shows following error
java.sql.SQLException: ORA-00901: invalid CREATE command