OCP-1Z0-051-題目解析-第16題

來源:互聯網
上載者:User

16. 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 flower braces have been used.
B. It produces an error because the data types are not matching.
C. It executes successfully and introduces an   's at the end of each promo_name in the output.

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

Answer: C

題目解析:
A:會產生一個錯誤,因為使用的花括弧(錯誤,該處的花括弧是Q-quote的運算式)
B:會產生一個錯誤,因為資料類型不匹配(錯誤,無關選項)
C:會正確執行,並且在每一個promo_name後面添加一個's(正確,這是一個Q-quote的運算式)
D: 會正確執行,並且在每行輸出字串{'s start date was }(錯誤)


關於這道題的詳細解答參照第13題:http://blog.csdn.net/wjx515628/article/details/35278889 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.