I want to create a table and this table's name will be inserted from a textfield. However when I run the query it's giving me an error, any help on this one? I'll paste the code here:
public boolean CreateTable() {
TableNumber = jTextField4.getText();
try {
String password = null;
String s = "CREATE TABLE '"+TableNumber+ "' (Item char(50),Price char(50))";
ConnectionForOrders();
stmt = conn.createStatement();
stmt.executeUpdate(s);
boolean f = false;
ConnectionForOrdersclose();