Oracle implicitly converts a character value to DATE when it is compared with a DATE column, subject to the session’s date-format rules; 15-february-2008 can be matched to a DD-MON-RR-style format through Oracle’s alternative date-format matching. When a NUMBER column is compared with character numeric literals, Oracle implicitly converts those literals to NUMBER, including the bounds of a BETWEEN condition. Oracle documents that comparisons between character and numeric values convert the character value to NUMBER, and that date-string conversion uses date-format matching rules.
Community Discussion