天天看點

OCP-1Z0-051 第98題 COALESCE函數的用法

一、原題

Which statement is true regarding the COALESCE function?

A. It can have a maximum of five expressions in a list.

B. It returns the highest NOT NULL value in the list for all rows.

C. It requires that all expressions in the list must be of the same data type.

D. It requires that at least one of the expressions in the list must have a NOT NULL value

答案:C

二、題目翻譯

關于COALESCE函數哪一句話是正确的?

A. 最大隻能包含5個表達式清單。

B. 傳回清單中最高的一個非空值。

C. 清單中所有表達式的資料類型必須一緻。

D. 清單中至少要有一個表達式為非空。

三、題目解析

A選項不正确,coalesce函數的參數,可以有多個。

B選項不正确,是傳回清單中第一個非null值。

C選項正确。

D選項不正确,如果表達式都為null,則傳回null。

       COALESCE函數的詳細用法,參考:

               http://blog.csdn.net/holly2008/article/details/25251513

繼續閱讀