OCP-1Z0-051-Question Analysis-16th question

Source: Internet
Author: User

16.Evaluate the following query:

SQL> SELECT promo_name  q'{'s start date was }'  promo_begin_date                           AS "Promotion Launches"FROM promotions;
What wocould 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

Question Analysis:
A: an error occurs because the curly braces are used (incorrect, the curly braces here are the Q-quote expressions)
B: an error occurs because the data type does not match (incorrect, irrelevant)
C: It will be executed correctly and an's will be added after each promo_name (correct, this is a Q-quote expression)
D: It will be correctly executed and the output string {'s start date was} (error) in each row)


For a detailed answer to this question refer to 13th question: http://blog.csdn.net/wjx515628/article/details/35278889

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.