题目
题目

BU.330.770.T2.FA25 Quiz 2- Requires Respondus LockDown Browser

单项选择题

Which of the following SQL statements is invalid and will result in an error message? Assume that the BOOKS table currently has no constraints and contains no data. For your information, BOOKS and PUBLISHER tables have a relationship shown below:

选项
A.ALTER TABLE books ADD CONSTRAINT books_isbn_pk;
B.ALTER TABLE books ADD CONSTRAINT books_pubid_fk FOREIGN KEY (pubid) REFERENCES publisher (pubid);
C.ALTER TABLE books ADD CONSTRAINT books_isbn_pk PRIMARY KEY (isbn);
题目图片
查看解析

查看解析

标准答案
Please login to view
思路分析
When evaluating which SQL statement is invalid in the given scenario, it helps to review what each statement is trying to do and what the table definitions imply. Option 1: ALTER TABLE books ADD CONSTRAINT books_isbn_pk; This statement is malformed. It attempts to add a constraint but does not specify the type of constraint (PRIMARY KEY, UNIQUE, FOREIGN KEY, etc.) nor t......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!