Find solution

how to create a new syntax in java?

Here are 17 best answers to ‘how to create a new syntax in java?’ - the most relevant comments and solutions are submitted by users of Stack Overflow, Quora and Yahoo! Answers.

Best solution

  • Syntax error trying to create an sql table from Java

    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...

    Answer:

    I'll start by assuming your '" gaff is a typo because it shouldn't even compile that way (I edited...

    Mark as irrelevant Undo

Other solutions