How to handle to_date exceptions in a SELECT statment to ignore those rows?
问题 I have the following query that I am attempting to use as a COMMAND in a crystal report that I am working on. SELECT * FROM myTable WHERE to_date(myTable.sdate, 'MM/dd/yyyy') <= {?EndDate} This works fine, however my only concern is that the date may not always be in the correct format (due to user error). I know that when the to_date function fails it throws an exception.. is it possible to handle this exception in such a way that it ignores the corresponding row in my SELECT statement?