public static ResultSet getSelect1(bookprop p) { ResultSet rs = null; try { Connection con = ConnectionProvider.getcon(); Statement stmt = con.createStatement(); rs = stmt.executeQuery("select * from appoint where did='" + p.getabc() + "'"); } catch (Exception e) { } return rs; }
public static ResultSet SelectData() { ResultSet rs = null; try { Connection con = ConnectionProvider.getcon(); Statement stmt = con.createStatement(); rs = stmt.executeQuery("select * from feedback"); } catch (Exception e) { } return rs; }
public static ResultSet getSelect() { ResultSet rs = null; try { Connection con = ConnectionProvider.getcon(); Statement stmt = con.createStatement(); rs = stmt.executeQuery( "select appointdate,appointtime,appointid from appoint where appointid in (select max(appointid) from appoint)"); } catch (Exception e) { } return rs; }