当前位置:网站首页>Oracle/PLSQL: From_Tz function
Oracle/PLSQL: From_Tz function
2022-06-27 01:35:00 【yuanlnet】
In Oracle/PLSQL, the from_tz function converts a TIMESTAMP value (given a TIME ZONE) to a TIMESTAMP WITH TIME ZONE value.
Syntax
The syntax for the from_tz function is:
from_tz( timestamp_value, time_zone_value )
timestamp_value is the value to convert to a TIMESTAMP WITH TIME ZONE value.
time_zone_value is the time zone used to convert timestamp_value to a TIMESTAMP WITH TIME ZONE value.
Applies To
- Oracle 11g, Oracle 10g, Oracle 9i
For Example
If you executed the following SQL statement:
select from_tz(TIMESTAMP '2005-09-11 01:50:42', '5:00')
from dual;
You would now get the following result:
11-Sep-05 01.50.42.000000 AM +05:00
If you executed the same SQL statement, but set the time zone to '-7:00' as follows:
select from_tz(TIMESTAMP '2005-09-11 01:50:42', '-7:00')
from dual;
You would now get the following result:
11-Sep-05 01.50.42.000000 AM -07:00
边栏推荐
- Custom jsp[if, foreach, data, select] tag
- Meituan: data management and pit avoidance strategy summarized after stepping on Thunder for several years
- NLP: brief introduction of transformer in NLP natural language field (pre training technology), NLP model development (elmo/gpt/bert/mt-dnn/xlnet/roberta/albert), detailed introduction to classic case
- Analysis of ideal L9 product power: the price is 459800 yuan, the four cylinder engine is adopted, and the endurance is 1315km
- NOKOV动作捕捉系统使多场协同无人机自主建造成为可能
- ML:机器学习工程化之团队十大角色背景、职责、产出物划分之详细攻略
- Kept to implement redis autofailover (redisha) 13
- Esp32 experiment - self built web server distribution network 02
- Pointer compression for JVM
- markdown表格(合并)
猜你喜欢

清华&智源 | CogView2:更快更好的文本图像生成模型

Bs-gx-016 implementation of textbook management system based on SSM

BS-GX-016基于SSM实现教材管理系统

Daily question brushing record (V)

Esp32 experiment - self built web server distribution network 02

图论知识及其应用初步调研

getReader() has already been called for this request

Amazon elasticache quickly builds a cache service cluster, which is fast

微博评论高性能高可用架构

乔治·华盛顿大学 : Hanhan Zhou | PAC:多智能体强化学习中具有反事实预测的辅助价值因子分解
随机推荐
Kept to implement redis autofailover (redisha) 17
30 MySQL tutorial MySQL storage engine overview
按键控制LED状态翻转
Config in UVM_ How to use the DB mechanism
UVM中uvm_config_db非直线的设置与获取
SystemVerilog simulation speed increase
Keepalived 实现 Redis AutoFailover (RedisHA)13
Arbre binaire OJ sujet
UVM in UVM_ config_ Use of DB in sequence
Esp32 add multi directory custom component
IIS 部署静态网站和 FTP 服务
The listing of Fuyuan pharmaceutical is imminent: the net amount raised will reach 1.6 billion yuan, and hubaifan is the actual controller
宁愿去996也不要待业在家啦!24岁,失业7个月,比上班更惨的,是没班可上
Weibo comments on high performance and high availability architecture
UVM中config_db机制的使用方法
Summary of config mechanism and methods in UVM (1)
flutter系列之:flutter中的flow
【毕业季】角色转换
简单学习GoogleColab的入门级概念
Esp32 experiment - self built web server distribution network 02