Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to setup PreparedStatement date

843854May 16 2003 — edited May 16 2003
How to setup preparedStatement with date ?

upd = "exec usp_prh_det_update @addr=?,@vend=?,@part=,@date1=?";
PreparedStatement pstmt = con.prepareStatement(upd);
pstmt.setString(1,arry[0].trim());
pstmt.setString(2,arry[1].trim());
pstmt.setString(3,arry[10].trim());
// pstmt.setDatetime(4,"12-12-2003");
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2003
Added on May 16 2003
4 comments
318 views