I wrote these lines of java code to empty my application tables, but after the execution nothing happens.
Class.forName("org.hsqldb.jdbc.JDBCDriver");
Connection con = DriverManager.getConnection("jdbc:hsqldb:file:ordini", "root", "root");
Statement stmt = con.createStatement();
if(ORDINI) stmt.executeUpdate("DELETE FROM ordini");
if(ORDINI_HISTORY) stmt.executeUpdate("DELETE FROM ordini_history");
if(PRODOTTI) stmt.executeUpdate("DELETE FROM prodotti");
I've already tried with TRUNCATE TABLE statement but is the same thing.