Java SQL Table Drop deleteMySqlTable(String tableName, Statement stmt)

Here you can find the source of deleteMySqlTable(String tableName, Statement stmt)

Description

delete My Sql Table

License

Apache License

Declaration

private static void deleteMySqlTable(String tableName, Statement stmt) throws SQLException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.sql.SQLException;
import java.sql.Statement;

public class Main {
    /***********************************************************************/
    private static void deleteMySqlTable(String tableName, Statement stmt) throws SQLException {
        stmt.executeUpdate("TRUNCATE " + tableName);
    }//from   w ww . j  av a 2s .  c o m
}

Related

  1. delete(Connection conn, String table, Serializable id)
  2. deleteTable(Connection con, String tableName)
  3. dropTable(Connection con, String table)
  4. dropTable(Connection con, String tableName)
  5. dropTable(Connection conn, String table)