Here you can find the source of dropTable(Connection conn, String table)
public static void dropTable(Connection conn, String table)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.sql.SQLException; import java.sql.Statement; import java.sql.Connection; import java.util.logging.*; public class Main { public static void dropTable(Connection conn, String table) { Statement stmt = null;// w ww .j av a2 s . c o m try { stmt = conn.createStatement(); stmt.executeUpdate("drop table " + table); } catch (SQLException e) { Logger.global.log(Level.FINE, "Drop table failed for = " + table); Logger.global.log(Level.FINE, "==============\n\n"); } finally { try { stmt.close(); } catch (Exception ex) { } } } }