OCP-1Z0-052-V8.02-174題

174. Which two statements are true regarding B-tree index? (Choose two.)

A.The leaf blocks in the index are doubly linked.  

B.The leaf node stores a bitmap for each key value.

C.The rows with NULL value in key columns also have entries in the index.

D.The deletion of a row from the table causes a logical deletion in index leaf block and the space

becomes available for the new leaf entry

Answer: AD  

答案解析:

參考:http://blog.csdn.net/rlhua/article/details/12780775

A,在索引的葉塊是雙向鏈表。正確。葉塊在兩個方向都是相互關聯的,這便於按鍵值升序或降序掃描索引。

B,葉節點爲每個鍵值存儲的是一個位圖。錯誤。是ROWID

C,鍵列中的NULL值的行在索引中也有條目。錯誤。當某行包含的所有鍵列爲NULL 時,該行沒有對應的索引條目。因此,當WHERE子句指定了NULL 時,始終會導致全表掃描。

D,從表中的行的刪除操作導致邏輯刪除索引的葉塊中的空間變爲可用的新的葉條目,正確。刪除一行只會導致對索引條目進行邏輯刪除。在刪除塊中的所有條目之前,已刪除行佔用的空間不可用於新條目。在刪除後,便可用於新條目。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章