【Oracle 12c】最新CUUG OCP-071考试题库(53题)

前端之家收集整理的这篇文章主要介绍了【Oracle 12c】最新CUUG OCP-071考试题库(53题)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
53、(12-14) choose the best answer:

Examine the command to create the BOOKS table.

sql>CREATE TABLE books

(book_id CHAR(6) PRIMARY KEY,

title VARCHAR2(100) NOT NULL,

publisher_id VARCHAR2(4),

author_id VARCHAR2(50));

The BOOK_ID value 101 does not exist in the table.

Examine the sql statement:

sql> INSERT INTO books(BOOK_ID,TITLE,AUTHOR_ID)

VALUES (‘101‘,‘LEARNING sql‘,‘Tim Jones‘);

Which statement is true?

A) It executes successfully only if the PUBLISHER_ID column name is added to the columns list and NULL is explicitly specified in the INSERT statement.

B) It executes successfully only if NULL is explicity specified in the INSERT statement.

C) It executes successfully only if the PUBLISHER_ID column name is added to the columns list in the INSERT statement.

D) It executes successfully and the row is inserted with a null PUBLISHER_ID.

Answer:D

猜你在找的Oracle相关文章