1Z0-051 QUESTION 24 数据类型应该注意的地方
2014-05-11 00:45
417 查看
QUESTION 24
Examine the structure proposed for the TRANSACTIONS table:
name Null Type
TRANS_ID NOT NULL NUMBER(6)
CUST_NAME NOT NULL VARCHAR2(20)
CUST_STATUS NOT NULL VARCHAR2
TRANS_DATE NOT NULL DATE
TRANS_VALIDITY INTERVAL DAY TO SECOND
CUST_CREDIT_VALUE NUMBER(10)
Which two statements are true regarding the storage of data in the above table structure? (Choose two.)
A. The TRANS_DATE column would allow storage of dates only in the dd-mon-yyyy format.
B. The CUST_CREDIT_VALUE column would allow storage of positive and negative integers.
C. The TRANS_VALIDITY column would allow storage of a time interval in days, hours, minutes, and
seconds.
D. The CUST_STATUS column would allow storage of data up to the maximum VARCHAR2 size of 4,000
characters.
答案:BC
解析:
A选项错,TRANS_DATE 为DATE数据类型,不单单可以存储dd-mon-yyyy的类型,参看如下官方文档:
http://docs.oracle.com/cd/E11882_01/server.112/e40540/tablecls.htm#CNCPT413
Dates are stored in fixed-length fields of 7 bytes each, corresponding to century, year, month, day, hour, minute, and second.
B选项正确,CUST_CREDIT_VALUE为NUMBER(10),可以存储正数和负数,参看如下官方文档:
http://docs.oracle.com/cd/E11882_01/server.112/e40540/tablecls.htm#CNCPT1832
The NUMBER data type stores fixed and floating-point numbers. The database can store numbers of virtually any magnitude. This data is guaranteed to be portable among different operating systems running Oracle Database. The NUMBER data type is recommended
for most cases in which you must store numeric data.
C选项正确,TRANS_VALIDITY为INTERVAL DAY TO SECOND,从日精确到秒,因此,可以存储 days, hours, minutes, and seconds.
D选项不正确, CUST_STATUS,指定的类型VARCHAR2没有精度,会报错。
Examine the structure proposed for the TRANSACTIONS table:
name Null Type
TRANS_ID NOT NULL NUMBER(6)
CUST_NAME NOT NULL VARCHAR2(20)
CUST_STATUS NOT NULL VARCHAR2
TRANS_DATE NOT NULL DATE
TRANS_VALIDITY INTERVAL DAY TO SECOND
CUST_CREDIT_VALUE NUMBER(10)
Which two statements are true regarding the storage of data in the above table structure? (Choose two.)
A. The TRANS_DATE column would allow storage of dates only in the dd-mon-yyyy format.
B. The CUST_CREDIT_VALUE column would allow storage of positive and negative integers.
C. The TRANS_VALIDITY column would allow storage of a time interval in days, hours, minutes, and
seconds.
D. The CUST_STATUS column would allow storage of data up to the maximum VARCHAR2 size of 4,000
characters.
答案:BC
解析:
A选项错,TRANS_DATE 为DATE数据类型,不单单可以存储dd-mon-yyyy的类型,参看如下官方文档:
http://docs.oracle.com/cd/E11882_01/server.112/e40540/tablecls.htm#CNCPT413
Dates are stored in fixed-length fields of 7 bytes each, corresponding to century, year, month, day, hour, minute, and second.
B选项正确,CUST_CREDIT_VALUE为NUMBER(10),可以存储正数和负数,参看如下官方文档:
http://docs.oracle.com/cd/E11882_01/server.112/e40540/tablecls.htm#CNCPT1832
The NUMBER data type stores fixed and floating-point numbers. The database can store numbers of virtually any magnitude. This data is guaranteed to be portable among different operating systems running Oracle Database. The NUMBER data type is recommended
for most cases in which you must store numeric data.
C选项正确,TRANS_VALIDITY为INTERVAL DAY TO SECOND,从日精确到秒,因此,可以存储 days, hours, minutes, and seconds.
D选项不正确, CUST_STATUS,指定的类型VARCHAR2没有精度,会报错。
相关文章推荐
- 1Z0-051 QUESTION 21 LONG数据类型应该注意的地方
- 1Z0-051 QUESTION 23 数据类型应该注意的地方
- 1Z0-51 QUESTION 20 表的数据类型应该注意的地方
- 1Z0-051 QUESTION 25 表名应该注意的地方和CLOB应该注意的地方
- 1Z0-051 QUESTION 36 create table中约束应注意的地方
- 1Z0-051 QUESTION 10 运算的时候注意括号的位置和隐式转换
- 使用数据类型注意的地方
- acm应该注意的数据类型问题
- OCP-1Z0-051 第24题 数据类型
- java里String需要注意的地方以及基本数据类型注意点(不定期修改更新)
- JAVA中数据类型划分应该注意的事项
- OCP-1Z0-051 第23题 数据类型
- OCP 1Z0 051 QUESTION NO: 24
- acm应该注意的数据类型问题
- 关于数据类型Char要注意的地方
- 关于数据类型float&decimal要注意的地方
- Java 数据类型中需要注意的几个小地方
- OCP-1Z0-051 第20题 oracle数据类型
- js 基本的数据类型(boolean需要注意的地方)
- springmvc接收复杂类型的json数据需要注意的地方