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

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

文章分类

全部博文(487)

文章存档

2023年(37)

2021年(151)

2020年(37)

2019年(222)

2018年(38)

我的朋友

分类: Oracle

2019-03-04 14:35:16

56、(14-14) choose the best answer:

You need to create a table with the following column specifications:

1. Employee ID (numeric data type) for each employee

2. Employee Name (character data type) that stores the employee name

3. Hire date, which stores the date of joining the organization for each employee

4. Status (character data type), that contains the value 'ACTIVE' if no data is entered

5. Resume (character large object [CLOG] data type), which contains the resume submitted by the employee

Which is the correct syntax to create this table?

A) CREATE TABLE 1_EMP

(emp_id NUMBER (4) ,

emp_name VARCHAR2(25),

start_date DATE,

emp_tatus VARCHAR2(10) DEFAULT 'ACTIVE',

resume CLOB);


B) CREATE TABLE EMP_1

(emp_id NUMBER,

emp_name VARCHAR2(25),

start_date DATE,

emp_status VARCHAR2(10) DEFAULT 'ACTIVE',

resume CLOB);


C) CREATE TABLE EMP_1

(emp_id NUMBER (4) ,

emp_name VARCHAR2(25),

start_date DATE,

e_status VARCHAR2(10) DEFAULT 'ACTIVE',

resume CLOB(200));


D) CREATE TABLE EMP_1

(emp_id NUMBER (4) ,

emp_name VARCHAR2(25),

start_date DATE,

emp_status VARCHAR2(10) DEFAULT "ACTIVE",

resume CLOB);

Answer:B

(解析:A 答案错误是因为表名字第一个必须是字符,不能是数字;D 答案错误是因为字符要用单引号;C答案错误是大对象类型不能指定长度)

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