List of utility methods to do SQL Table Drop
void | dropTable(Connection connection, String tableName) drop Table Statement drop = null; try { drop = connection.createStatement(); drop.execute("DROP TABLE \"" + tableName + "\""); } catch (SQLException e) { } finally { close(drop); |
void | dropTable(Connection dbConn, String tableName) drop Table Statement table = dbConn.createStatement();
table.execute("DROP TABLE " + tableName);
table.close();
|
void | dropTable(java.sql.Connection conn, java.lang.String table) Drops a table from the JDBC database. throw new RuntimeException(); |
void | dropTable(Statement st, String query) drop Table try { st.executeUpdate(query); } catch (Exception e) { |
void | dropTableIfExists(String tableName, java.sql.Statement stmt) mimic "DROP TABLE IF EXISTS ..." dropObjectIfExists(tableName, "IsTable", stmt);
|
void | dropTablesIfExist(Statement statement) drop Tables If Exist String dropSql = "DROP TABLE IF EXISTS transaction;"; String dropSql1 = "DROP TABLE IF EXISTS part;"; String dropSql2 = "DROP TABLE IF EXISTS category;"; String dropSql3 = "DROP TABLE IF EXISTS salesperson;"; String dropSql4 = "DROP TABLE IF EXISTS manufacturer;"; statement.execute(dropSql); statement.execute(dropSql1); statement.execute(dropSql2); ... |