zoukankan      html  css  js  c++  java
  • 【Oracle 12c】最新CUUG OCP-071考试题库(56题)

    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答案错误是大对象类型不能指定长度)

  • 相关阅读:
    CentOS 6、CentOS 7系统设置防火墙及使用区别
    HAProxy 使用小记
    oracle快速创建用户、imp/exp导入导出dmp文件
    $@和$*的作用和区别
    根据命令行输出key-value键值对
    mysql备份
    mysql大表归档后清理数据
    redis数据修复记录-1
    redis数据修复记录-2
    调整mysql路径
  • 原文地址:https://www.cnblogs.com/cnblogs5359/p/10470582.html
Copyright © 2011-2022 走看看