Here you can find the source of executeQuery(Statement state, String sql)
Parameter | Description |
---|---|
state | a parameter |
sql | a parameter |
Parameter | Description |
---|---|
SQLException | an exception |
public static ResultSet executeQuery(Statement state, String sql) throws SQLException
//package com.java2s; import java.sql.*; public class Main { /**/*from www. j a v a 2 s .c o m*/ * * @param state * @param sql * @return * @throws SQLException */ public static ResultSet executeQuery(Statement state, String sql) throws SQLException { try { ResultSet rs = state.executeQuery(sql); return rs; } catch (SQLException ex) { throw ex; } } }