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

來源:互聯網
上載者:User

21. Examine the description of the EMP_DETAILS table given below: 
name               NULL                 TYPE 
EMP_ID             NOT NULL             NUMBER 
EMP_NAME           NOT NULL             VARCHAR2 (40) 
EMP_IMAGE                               LONG 
Which two statements are true regarding SQL statements that can be executed on the EMP_DETAIL table? (Choose two.) 
A. An EMP_IMAGE column can be included in the GROUP BY clause. 
B. An EMP_IMAGE column cannot be included in the ORDER BY clause. 
C. You cannot add a  new column to the table with LONG as the  data type. 

D. You can alter the table to include the  NOT NULL constraint on the EMP_IMAGE column. 


Answer: BC 

關於long類型的欄位有以下特點:
1: 在Group By 和Order By 字句中不能包含含有long類型的欄位。
2: 使用子查詢建表的時候不複製含有long類型的欄位。
3: 不能對long類型的欄位定義約束條件
4: 一個表只能含有一個long類型的欄位


A: EMP_IMAGE欄位可以被包含在Group By 子句中(錯誤,EMP_IMAGE的類型是long)
B: EMP_IMAGE欄位不可以包含在Order By 子句中(正確)
C: 不能再向表中添加一個資料類型是long的新欄位 (正確,表中已含有long類型的欄位)
D: 可以更新表,添加not null約束到EMP_IMAGE欄位中(錯誤,long類型的欄位不能添加任何約束)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.