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

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.