ITPub博客

首页 > 数据库 > Oracle > Oracle Certificate Profession 1Z0-051-13

Oracle Certificate Profession 1Z0-051-13

原创 Oracle 作者:LuiseDalian 时间:2014-05-09 07:47:38 0 删除 编辑
(13)View the Exhibit and examine the structure of the PRODUCTS table. You need to generate a report in the following format:

CATEGORIES

5MP Digital Photo Camera's category is Photo Y Box's category is Electronics

Envoy Ambassador's category is Hardware

Which two queries would give the required output? (Choose two.)



A.SELECT prod_name || q'''s category is ' || prod_category CATEGORIES FROM products;

B. SELECT prod_name || q'['s ]'category is ' || prod_category CATEGORIES FROM products;

C. SELECT prod_name || q'\'s\' || ' category is ' || prod_category CATEGORIES FROM products;(here)

D. SELECT prod_name || q'<'s >' || 'category is ' || prod_category CATEGORIES FROM products;


答案:(C、D)

备注:从Oralce 10g开始,可以使用q’<>/[]/{}/\\’,引号中用特殊字符将作为普通字符使用。


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1157182/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6040893