OCP-1Z0-051-名称解析-文章12称号

12. You need to produce a report where each customer‘s credit limit has been incremented by $1000. In

the output, the customer‘s last name should have the heading Name and the incremented credit limit

should be labeled New Credit Limit. The column headings should have only the first letter of each word in uppercase.

Which statement would accomplish this requirement?

(题意:你须要制作一个报表,该表报中顾客的credit limit须要加1000,顾客名称字段的标题名称为Name。新credit limit的标题名称为 New Credit Limit,这三个单词要首字母大写。问以下的哪条语句符合上面的要求?)

A.

SELECT cust_last_name Name, cust_credit_limit + 1000

"New Credit Limit"

FROM customers;

B.

SELECT cust_last_name AS Name, cust_credit_limit + 1000

AS New Credit Limit

FROM customers;

C.

SELECT cust_last_name AS "Name", cust_credit_limit + 1000

AS "New Credit Limit"

FROM customers;

D.

SELECT INITCAP(cust_last_name) "Name", cust_credit_limit + 1000

INITCAP("NEW CREDIT LIMIT")

FROM customers;

Answer: B

题目解析:

这道题是关于字段标题是否加双引號的问题,关于双引號的使用规则例如以下:

1.假设字段名称是多个单词组成,中间有空格,如New Credit Limit。则必须加双引號,否则会报错。

2.假设标题名称是一个单词或多个连续的单词。假设不加双引號。则输出的格式是全然大写的,如选项A,就会输出NAME。

假设加双引號则会原样输出,如选项C会输出 Name

综上所述,所以这道题的正确答案是C

D选项中的initcap函数不可用于字段名称。是语方法错误。

版权声明:本文博主原创文章。博客,未经同意不得转载。

时间: 2024-08-06 02:17:45

OCP-1Z0-051-名称解析-文章12称号的相关文章

OCP-1Z0-051-名称解析-文章32称号

32. Which CREATE TABLE statement is valid? A. CREATE TABLE ord_details (ord_no NUMBER(2) PRIMARY KEY, item_no NUMBER(3) PRIMARY KEY, ord_date DATE NOT NULL); B. CREATE TABLE ord_details (ord_no NUMBER(2) UNIQUE, NOT NULL, item_no NUMBER(3), ord_date

Oracle OCP 11G 051(61题版本)答案解析目录

Oracle OCP 11G 051(61题版本)答案解析目录 61题版本 V9.02 1 http://blog.csdn.net/rlhua/article/details/17635843 2  http://blog.csdn.net/rlhua/article/details/17635887 3 http://blog.csdn.net/rlhua/article/details/17635919 86 4 http://blog.csdn.net/rlhua/article/det

PHP 面向对象编程和设计模式 (5) - PHP 命名空间的使用及名称解析规则

PHP高级程序设计 学习笔记 2014.06.12 命名空间概述 PHP 在 5.3.0 以后的版本开始支持命名空间.什么是命名空间?从广义上来说,命名空间是一种封装事物的方法.在很多地方都可以见到这种抽象概念.在PHP中,命名空间用来解决在编写类库或应用程序时创建可重用的代码如类或函数时碰到的两类问题: 用户编写的代码与PHP内部的类/函数/常量或第三方类/函数/常量之间的名字冲突. 为很长的标识符名称(通常是为了缓解第一类问题而定义的)创建一个别名(或简短)的名称,提高源代码的可读性. PH

OCP-1Z0-051-题目解析-第12题

12. You need to produce a report where each customer's credit limit has been incremented by $1000. Inthe output, the customer's last name should have the heading Name and the incremented credit limitshould be labeled New Credit Limit. The column head

SpringMVC处理器映射器和方法名称解析器

所谓配置式开发是指,“处理器类是程序员手工定义的,实现了特定接口的类,然后再在SpringMVC配置文件中对该类进行显式的,明确的注册”的开发方式” 1.处理器映射器HandlerMapping HandlerMapping接口负责根据request请求找到对应的Handler处理器即Interceptor拦截器,并将它们封装在HandlerExecutionChain对象中,返回给中央调度器. 其常用的实现类有两种: 01BeanNameUrlHandlerMapping 02SimpleUr

nsswitch:名称解析服务

App->nsswitch->resolve_lib libnss /etc/nsswitch.conf主配置文件 # Example: #passwd:    db files nisplus nis #shadow:    db files nisplus nis #group:     db files nisplus nis passwd:     files shadow:     files group:      files #hosts:     db files nisplu

Spring MVC-控制器(Controller)-参数方法名称解析器(Parameter Method Name Resolver )示例(转载实践)

以下内容翻译自:https://www.tutorialspoint.com/springmvc/springmvc_parametermethodnameresolver.htm 说明:示例基于Spring MVC 4.1.6. 以下示例显示如何使用Spring Web MVC框架使用多操作控制器的参数方法名称解析器方法.MultiActionController类有助于分别在单个控制器中将多个URL与其方法映射. package com.tutorialspoint; import java

Spring MVC-控制器(Controller)-属性方法名称解析器(Properties Method Name Resolver )示例(转载实践)

以下内容翻译自:https://www.tutorialspoint.com/springmvc/springmvc_propertiesmethodnameresolver.htm 说明:示例基于Spring MVC 4.1.6. 以下示例显示如何使用Spring Web MVC框架使用多操作控制器的属性方法名称解析方法.MultiActionController类有助于分别在单个控制器中将多个URL与其方法映射. package com.tutorialspoint; import java

命名空间--名称解析规则

(PHP 5 >= 5.3.0, PHP 7) PHP 命名空间中,类名可以通过三种方式引用: 非限定名称(Unqualified name),名称中不包含命名空间分隔符的标识符,如Foo. 例子 $a=new foo(); 或 foo::staticmethod();.如果当前命名空间是currentnamespace,foo 将被解析为currentnamespace\foo.如果使用 foo 的代码是全局的,不包含在任何命名空间中的代码,则 foo 会被解析为foo. 限定名称(Quali