Here you can find the source of execute(Connection conn, String SQL)
public static void execute(Connection conn, String SQL) throws Exception
//package com.java2s; import java.sql.Connection; import java.sql.Statement; public class Main { public static void execute(Connection conn, String SQL) throws Exception { Statement stmt = conn.createStatement(); try {// ww w . j av a2 s. co m stmt.execute(SQL.toString()); } catch (Exception ex) { System.out.println("Exception running SQL: " + SQL.toString()); throw ex; } } }