Prepared Statement for select query
843854Jul 9 2004 — edited Nov 20 2014Hi All,
Can we use PreparedStatement for select query ?
if yes,then how
i mean if i write
PreparedStatement pstmt=con.prepareStatement("select * from Login where empno=? and password=?");
pstmt.setInt(eno);
pstmt.setString(pas);
then how do i see the results of this query?
Pooja