Here you can find the source of deleteTable(Connection con, String tableName)
public static void deleteTable(Connection con, String tableName) throws SQLException
//package com.java2s; /*//from w ww .j a va2s. c o m * codjo.net * * Common Apache License 2.0 */ import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; public class Main { public static void deleteTable(Connection con, String tableName) throws SQLException { Statement stmt = null; try { stmt = con.createStatement(); stmt.executeUpdate("delete " + tableName); } finally { if (stmt != null) { stmt.close(); } } } }