I've searched stackoverflow but did not found the solution (at least the way I want it).
I have a JSP page which calls a Java method to insert a date into Oracle database. It passes a String. The problem, how to build the string to execute the insert?
String myInsert = "INSERT INTO table_name
values (..., to_date(<<Java variable name>>, 'yyyy/mm/dd hh:mm'), ....);
where Java variable name refers to a variable of type String. I want to let Oracle to the job, not necessarily using SimpleDateFormat, if it's possible. So, should I use '' or " " Youre help would be very much appreciated