【2019年8月】OCP 071认证考试最新版本的考试原题-第28题

2019-11-14 17:25:36 浏览数 (1)

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

(解析:日期型转换的时候要注意元素格式。)

0 人点赞