Here you can find the source of dropTablesIfExist(Statement statement)
private static void dropTablesIfExist(Statement statement) throws SQLException
//package com.java2s; //License from project: Open Source License import java.sql.*; public class Main { private static void dropTablesIfExist(Statement statement) throws SQLException { 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);// w ww . ja v a 2 s . c om statement.execute(dropSql1); statement.execute(dropSql2); statement.execute(dropSql3); statement.execute(dropSql4); } }