Here you can find the source of executeInsertSQL(String sql)
private static int executeInsertSQL(String sql) throws SQLException
//package com.java2s; /*L//ww w .ja v a 2 s. c om * Copyright Georgetown University, Washington University. * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cab2b/LICENSE.txt for details. */ import java.sql.SQLException; import java.sql.Statement; public class Main { private static Statement stmt = null; private static int executeInsertSQL(String sql) throws SQLException { int b; System.out.println(sql + ";"); b = stmt.executeUpdate(sql); return b; } }