报错信息:ORA-01830: date format picture ends before converting entire input string
Error sql fragment:
is not null and (to_date(字段名,'yyyy-MM-dd')+1) > sysdate
The reason for the error: the data stored in the database can not be identified
Solution: Modify the sql fragment to: is not null and (to_date(field name,'yyyy-MM-dd HH:mm:ss')+1)> sysdate
-------------------------------------------------------------------------------------
Re-query after modification
Error message: ORA-01810: format code appears twice
The reason for the error: the date format in Oracle is case-insensitive, so mm appears twice
Solution: Modify the sql fragment to: is not null and (to_date(field name,'yyyy-MM-dd HH:mi:ss')+1)> sysdate
-------------------------------------------------------------------------------------
Re-query after modification
Error message: ORA-01849: hour must be between 1 and 12
The reason for the error: If the Oracle language setting is set to use 12 hours, this problem will occur when the 24-hour time format is converted.
Solution: Modify the sql fragment to: is not null and (to_date(field name,'yyyy-MM-dd HH24:mi:ss')+1)> sysdate