I try to execute the following query using java.sql.PreparedStatement:
SELECT NVL (tb.ddate, '2002-10-15')
FROM tb
But get this error:
java.sql.SQLException: ORA-01843: ¿¿¿¿ ¿¿ ¿¿¿
What is wrong?
The date is not in expected format.
See http://docs.oracle.com/cd/B19306_01/server.102/b14237/initparams122.htm
Or try:
SELECT NVL (tb.ddate, to_date('2002-10-15', 'YYYY-MM-DD') )
FROM tb
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.