choose two
The ORDERS table has a column ORDER_DATE of date type DATE
The default display format for a date is DD-MON-RR
Which two WHERE conditions demonstrate the correct usage of conversion functions?
A) WHERE ordet_date > TO_CRAR(ADD_MONTHS(SYSDATE, 6), ‘MON DD YYYY‘)
B) WHERE TO_CHAR(order_date, ‘MON DD YYYY‘) = ‘JAN 20 2019‘
C ) WHERE order_date > TO_DATE(‘JUL 10 2018‘, ‘MON DD YYYY‘)
D) WHERE order_date IN (TO_DATE (‘Oct 21 2018‘, ‘MON DD YYYY‘), TO_CHAR(‘Nov 21 2018‘,‘MON DD YYYY‘))
E) WHERE order_date > TO_DATE(ADD_MONTHS(SYSDATE,6),‘MON DD YYYY‘)
Answer:BC
(解析:日期型转换的时候要注意元素格式。)
原文地址:https://blog.51cto.com/13854012/2450254
时间: 2024-11-08 16:58:23