ocp考试资料群:569933648 验证码:ocp OCP 12c 19c考试题库解析与资料群:钉钉群号:35277291
全部博文(487)
分类: Oracle
2019-11-04 10:18:09
choose two
In the PROMOTIONS table, the PROMO_BEGTN_DATE columm is of datatype DATE and the default date format is DD-MON-RR.
Which two statements are true about expressions using PROMO_BEGIN_DATE contained in a queny?
A) TO_NUMBER(PROMO_ BEGIN_DATE) - 5 will return number
B) TO_DATE(PROMO_BEGIN_DATE * 5) will return a date
C) PROMO_BEGIN_DATE - SYSDATE will return a number.
D) PROMO_BEGIN_DATE - 5 will return a date.
E) PROMO_BEGIN_DATE - SYSDATE will return an error.
Answer:CD
(解析:这道题考的还比较有意义,AAnswer:错是因为日期型的不能转换为 number;日期不能乘除某个数,所以 BAnswer:错;但是日期型的是可以进行加减。)