Chinaunix首页 | 论坛 | 博客
  • 博客访问: 667576
  • 博文数量: 487
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4936
  • 用 户 组: 普通用户
  • 注册时间: 2018-07-05 13:59
个人简介

ocp考试资料群:569933648 验证码:ocp OCP 12c 19c考试题库解析与资料群:钉钉群号:35277291

文章分类

全部博文(487)

文章存档

2024年(2)

2023年(37)

2021年(151)

2020年(37)

2019年(222)

2018年(38)

我的朋友

分类: Oracle

2019-03-04 11:28:27

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

阅读(925) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~