Java SQL Execute exec(Connection psql, String sql)

Here you can find the source of exec(Connection psql, String sql)

Description

exec

License

Open Source License

Declaration

public static void exec(Connection psql, String sql) throws SQLException 

Method Source Code

//package com.java2s;

import java.sql.*;

public class Main {
    public static void exec(Connection psql, String sql) throws SQLException {
        Statement statement = psql.createStatement();
        statement.execute(sql);/*ww w  .j  a va2 s.  c  o  m*/
        statement.close();
    }
}

Related

  1. exec(Connection conn, String sql)
  2. execSql(String sql, Connection conn)
  3. execStatement(Connection con, String strStatement)
  4. execte(Connection conn, String sql)
  5. execute(Connection conn, String SQL)