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
)
阅读(824) | 评论(0) | 转发(0) |