Java SQL Query executeDDL(String query, Connection connection)

Here you can find the source of executeDDL(String query, Connection connection)

Description

execute DDL

License

Open Source License

Declaration

public static void executeDDL(String query, Connection connection) throws SQLException 

Method Source Code


//package com.java2s;
import java.sql.*;

public class Main {
    public static void executeDDL(String query, Connection connection) throws SQLException {
        try (Statement st = connection.createStatement()) {
            st.executeUpdate(query);/*from ww  w  .  j  a  v a 2s  . c om*/
        }
    }
}

Related

  1. createInQueryStatement(String query, long[] ids, Connection conn)
  2. executeCsvQuery(Connection csv, String csvTableName)
  3. executeForResult(Connection conn, String query, String... args)
  4. ExecuteNoneQuerys(String cmdtext, Object[] parms)
  5. executeQuery(Connection c, String query)
  6. ExecuteQuery(Connection conn, PreparedStatement preparedStatement, PreparedStatement lockStatement, String tablename)