【Oracle 12c】CUUG OCP认证071考试原题解析(29)

时间:2022-02-08 05:07:36

29.choose the best answer

Evaluate the following query:

SQL> SELECT promo_name || q'{'s start date was \}' || promo_begin_date

AS "Promotion Launches"

FROM promotions;

What would be the outcome of the above query?

A) It produces an error because the data types are not matching.

B) It executes successfully and displays the literal "{'s start date was \} " for each row in the output.

C) It executes successfully and introduces an 's at the end of each promo_name in the output.

D) It produces an error because flower braces have been used.

Answer:B

(执行结果如下:

Promotion Launches

---------------------------------------------------------------

NO PROMOTION #'s start date was \01-1 月 -99

newspaper promotion #16-108's start date was \23-12 月-00

)