2 Replies Latest reply: Jul 25, 2011 5:54 AM by gimbal2 RSS

    Prepared statement for date query

    861530
      Using preparedstatement is it possible to insert the values for date using setDate() mehtod ?

      eg:-
      String sql = "Select name from table where testDate between ? and ?";
      
      pstmt.setDate(date);