zoukankan      html  css  js  c++  java
  • OCP-1Z0-051-题目解析-第25题

    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); 


    Answer: D 

    A:错误,CLOB类型不须要定义长度
    B:错误,表名不能以数字开头
    C:错误。字符串是以单引號开头和结束的
    D:正确
  • 相关阅读:
    web 学习资源整理
    CodeSmith 学习资料收集
    常用 T_SQL 语句
    SQL Server 2000查询分析器自定义查询快捷键
    插入标识列 identity_insert
    c# 上传FTP文件
    (.Net 3.5Sp1)WebForm使用System.Web.Routing
    SPQuery.ViewAttributes
    ChatterBot之linux下安装mongodb 02
    linux端口开放指定端口的两种方法
  • 原文地址:https://www.cnblogs.com/blfshiye/p/5113102.html
Copyright © 2011-2022 走看看