OCP-1Z0-051-題目解析-第35題
阿新 • • 發佈:2018-12-23
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 外,其他的約束都可以定義在表級別或列級別)
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 外,其他的約束都可以定義在表級別或列級別)