Here you can find the source of executeUpdate(Connection conn, String sql)
public static int executeUpdate(Connection conn, String sql)
//package com.java2s; //License from project: Open Source License import java.sql.Connection; import java.sql.Statement; public class Main { public static int executeUpdate(Connection conn, String sql) { int num = 0; try {/* ww w . j a v a2 s. c om*/ Statement stmt = conn.createStatement(); num = stmt.executeUpdate(sql); } catch (Exception e) { e.printStackTrace(); } return num; } }