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

35. Which two statements are true regarding constraints? (Choose two.) 
A. A table can have only one primary key and one foreign key. 
B. A table can have only one primary key but multiple foreign keys. 
C. Only the primary key can be defined at the column and table levels. 
D. The foreign key and parent table primary key must have the same name. 
E. Both primary key and foreign key constraints can be defined at both column and table levels. 


Answer: BE 


A:一個表只能有一個主鍵和一個外鍵(錯誤,外鍵可以有多個)
B: 一個表可以有一個主鍵和多個外鍵(正確)
C:只有主鍵既可以定義在行級別也可以定義在表級別(錯誤,外鍵、唯一同樣可以)
D:外鍵和父表的主鍵名稱必須相同(錯誤,沒有關係)
E:主鍵和外鍵都可以定義在表級別和列級別(正確,處NOT NULL 外,其他的約束都可以定義在表級別或列級別)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章