- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Les05 时间函数介绍.ppt
Managing Data in Different Time Zones Objectives After completing this lesson, you should be able to use the following datetime functions: TZ_OFFSET FROM_TZ TO_TIMESTAMP TO_TIMESTAMP_TZ TO_YMINTERVAL Time Zones TIME_ZONE Session Parameter TIME_ZONE may be set to: An absolute offset Database time zone OS local time zone A named region CURRENT_DATE, CURRENT_TIMESTAMP,and LOCALTIMESTAMP CURRENT_DATE Returns the current date from the system Has a data type of DATE CURRENT_TIMESTAMP Returns the current timestamp from the system Has a data type of TIMESTAMP WITH TIME ZONE LOCALTIMESTAMP Returns the current timestamp from user session Has a data type of TIMESTAMP CURRENT_DATE Display the current date and time in the session’s time zone. CURRENT_TIMESTAMP Display the current date and fractional time in the session’s time zone. LOCALTIMESTAMP Display the current date and time in the session’s time zone in a value of TIMESTAMP data type. LOCALTIMESTAMP returns a TIMESTAMP value, whereas CURRENT_TIMESTAMP returns a TIMESTAMP WITH TIME ZONE value. DBTIMEZONE and SESSIONTIMEZONE Display the value of the database time zone. Display the value of the session’s time zone. TIMESTAMP Data Type The TIMESTAMP data type is an extension of the DATE data type. It stores the year, month, and day of the DATE data type, plus hour, minute, and second values,as well as the fractional second value. Variations in TIMESTAMP are: TIMESTAMP[(fractional_seconds_precision)]_ TIMESTAMP [(fractional_seconds_precision)]_ WITH TIME ZONE TIMESTAMP [(fractional_seconds_precision)]_ WITH LOCAL TIME ZONE TIMESTAMP Data Types TIMESTAMP Fields Difference between DATE and TIMESTAMP TIMESTAMP WITH TIME ZONE Data Type TIMESTAMP WITH TIME ZONE is a variant of TIMESTAMP that includes a time zone displacement in its value. The time zone displacement is the difference,in hours and minutes, between local time and UTC. It is specified as: TIMESTAMP WITH TIMEZONE: Example TIMESTAMP WITH LOCAL TIMEZO
文档评论(0)