Java SQL Table Drop dropTable(Connection connection)

Here you can find the source of dropTable(Connection connection)

Description

drop Table

License

Open Source License

Declaration

public static void dropTable(Connection connection) throws SQLException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

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

public class Main {
    private static final String DROP_TABLE_QUERY = "DROP TABLE matchervalue";

    public static void dropTable(Connection connection) throws SQLException {
        Statement statement = connection.createStatement();
        statement.execute(DROP_TABLE_QUERY);
    }/*  w  ww  .  j  a  va 2s  .  co m*/
}

Related

  1. dropTable(Connection con, String table)
  2. dropTable(Connection con, String tableName)
  3. dropTable(Connection conn, String table)
  4. dropTable(Connection conn, String tablename)
  5. dropTable(Connection conn, String tableName)
  6. dropTable(Connection connection)
  7. dropTable(Connection connection, String tableName)
  8. dropTable(Connection dbConn, String tableName)
  9. dropTable(java.sql.Connection conn, java.lang.String table)