how can i set a special date in PreparedStatement parameters?
问题 heloo... I have a problem when I want to use date in my code I have a class that named ReportService and in this class I use jdbc to connect my database and after that I want to get a report from my database in a special date.frist I write this : ("select sum(cost) from mem_income where trunc(date_out) = to_date ('31-jul-2013' , 'dd-mm-yyyy')"); and this work good.but after that I want to pass my date from my main class: PreparedStatement pst = conn.prepareStatement("select sum(cost) from mem