码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2019-03-04 13:00:32      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:col   tab   dde   var   column   row   sql   exist   val   

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 12c】最新CUUG OCP-071考试题库(53题)

标签:col   tab   dde   var   column   row   sql   exist   val   

原文地址:https://blog.51cto.com/13854012/2357626

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!