ITPub博客

首页 > 数据库 > Oracle > Oracle Certificate Profession 1Z0-051-25

Oracle Certificate Profession 1Z0-051-25

原创 Oracle 作者:LuiseDalian 时间:2014-05-10 07:03:20 0 删除 编辑
(25)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 [CLOB] data type), which contains the resume submitted by the employee

Which is the correct syntax to create this table?

A.

CREATE TABLE EMP_1

(

  emp_id        NUMBER(4),

  emp_name   VARCHAR2(25),

  start_date   DATE,

  e_status     VARCHAR2(10) DEFAULT 'ACTIVE',

  resume       CLOB(200)

);

B.

CREATE TABLE 1_EMP

(

  emp_id        NUMBER(4),

  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,

  emp_status VARCHAR2(10) DEFAULT "ACTIVE",

  resume       CLOB

);

D.

CREATE TABLE EMP_1

(

  emp_id         NUMBER,

  emp_name    VARCHAR2(25),

  start_date     DATE,

  emp_status  VARCHAR2(10) DEFAULT 'ACTIVE',

  resume        CLOB

);


答案:(D)

解析:

A(X),CLOB不能指定精度

B(X),表名得以字母开头

C(X),emp_status列默认值应该为’ACTIVE’,不应该用双引号



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1157925/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6040940