Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
If you still want to pass a string, use TO_DATE into your sql statement: INSERT INTO MYTABLE VALUES ( TO_DATE(?, 'DD-MM-YYYY'), .... ) [ January 22, 2007: Message edited by: Satou kurinosuke ]
it gives error - symbol : method TO_DATE(java.lang.String,java.lang.String) location: class dbbean.addcontentbean pstmt.setString(4,TO_DATE(PG_DATE,"DD-MM-YYYY"));
its because compiler didn't found any function defined by name TO_DATE in addcontentbean class. its a SQL function so you must define your SQL related things in your SQL Query as Satou defined in a SQL statement.
how can i pass it with preparedstatement.
In preparedStatment SetXXX Method only takes 2 parameter one is value and another its(value) bound location.