OCP-1Z0-新051-61题版本-28

本文介绍了Oracle数据库中日期的内部存储格式及其默认显示格式,并详细解释了RR日期格式的工作原理,包括如何根据指定的两位年份及当前年份的后两位自动计算世纪。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

QUESTION NO: 28

Which two statements are true regarding working with dates? (Choose two.)

A. The default internal storage of dates is in the numeric format

B. The RR date format automatically calculates the century from the SYSDATE function but allows

the user to enter the century if required

C. The default internal storage of dates is in the character format

D. The RR date format automatically calculates the century from the SYSDATE function and does

not allow the user to enter the century

Answer: A,B

答案解析:

参考:80:http://blog.csdn.net/rlhua/article/details/12925323

Explanation:

Working with Dates

The Oracle Database stores dates in an internal numeric format, representing the century, year, month, day, hours, minutes, and seconds.

The default display and input format for any date is DD-MON-RR.

RR Date Format

The RR date format is similar to the YY element, but you can use it to specify different centuries.

Use the RR date format element instead of YY so that the century of the return value varies according to the specified two digit year and the last two digits of the current year. The table in the slide summarizes the behavior of the RR element.


untitled

Note the values shown in the last two rows of the above table. As we approach the middle of the

century, then the RR behavior is probably not what you want.

This data is stored internally as follows:

CENTURY YEAR MONTH DAY HOUR MINUTE SECOND 19 87 06 17 17 10 43

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值