Java SQL Execute execte(Connection conn, String sql)

Here you can find the source of execte(Connection conn, String sql)

Description

execte

License

Apache License

Exception

Parameter Description
SQLException an exception

Declaration

public static void execte(Connection conn, String sql) throws SQLException 

Method Source Code


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

import java.sql.Connection;

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

public class Main {
    /**//from  w w  w  .ja va2  s  . c  o m
     * @throws SQLException 
     * 
     */
    public static void execte(Connection conn, String sql) throws SQLException {
        Statement stat = conn.createStatement();
        stat.execute(sql);
        stat.close();
    }
}

Related

  1. exec(Connection conn, String sql)
  2. exec(Connection psql, String sql)
  3. execSql(String sql, Connection conn)
  4. execStatement(Connection con, String strStatement)
  5. execute(Connection conn, String SQL)
  6. execute(Connection conn, String sql, Object[] args)
  7. execute(Connection conn, String sql, Object[] params)
  8. execute(Connection conn, String string)