【2019年8月】OCP 071認證考試最新版本的考試原題-第21題

choose twoexpress

In the PROMOTIONS table, the PROMO_BEGTN_DATE columm is of datatype DATE and the default date format is DD-MON-RR.orm

Which two statements are true about expressions using PROMO_BEGIN_DATE contained in a queny?io

A) TO_NUMBER(PROMO_ BEGIN_DATE) - 5 will return numbertable

B) TO_DATE(PROMO_BEGIN_DATE * 5) will return a dateform

C) PROMO_BEGIN_DATE - SYSDATE will return a number.date

D) PROMO_BEGIN_DATE - 5 will return a date.error

E) PROMO_BEGIN_DATE - SYSDATE will return an error.tab

Answer:CDco

(解析:這道題考的還比較有意義,AAnswer:錯是由於日期型的不能轉換爲 number;日期不能乘除某個數,因此 BAnswer:錯;可是日期型的是能夠進行加減。)data

相關文章
相關標籤/搜索