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 ); |
解析:
A(X),CLOB不能指定精度
B(X),表名得以字母开头
C(X),emp_status列默认值应该为’ACTIVE’,不应该用双引号
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1157925/ ,如需转载,请注明出处,否则将追究法律责任。