当前位置:网站首页>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
边栏推荐
- XSS attack notes (Part 1)
- cookie,sessionstorage,localstorage区别
- Nokov motion capture system makes it possible for multi field cooperative UAV to build independently
- Addition, deletion, modification and query of ymal file
- 你的case真的pass了吗?
- Memcached foundation 4
- 微博评论高性能高可用架构
- SQLite Reader 插件测试SQLite语法
- Object access mechanism and others
- 学习DiscoDiffusion的最基础操作
猜你喜欢

Analysis of ideal L9 product power: the price is 459800 yuan, the four cylinder engine is adopted, and the endurance is 1315km

Esp32 experiment - self built web server distribution network 02

XSS攻击笔记(上)

接口测试框架实战(一) | Requests 与接口请求构造

uvm中的config机制方法总结(二)

Buuctf PWN write UPS (6)

在线文本数字识别列表求和工具

George Washington University: Hanhan Zhou | PAC: auxiliary value factor decomposition with counterfactual prediction in Multi-Agent Reinforcement Learning

getReader() has already been called for this request

建模规范:环境设置
随机推荐
Structure the fifth operation of the actual camp module
Keepalived 实现 Redis AutoFailover (RedisHA)13
I encountered some problems when connecting to the database. How can I solve them?
按键控制LED状态翻转
markdown表格(合并)
NLP:Transformer在NLP自然语言领域的简介(预训练技术)、NLP模型发展(ELmo/GPT/BERT/MT-DNN/XLNet/RoBERTa/ALBERT)、经典案例之详细攻略
Basic introduction to C program structure Preview
在线文本数字识别列表求和工具
Hibernate generates SQL based on Dialect
每日刷题记录 (五)
SystemVerilog仿真速率提升
Buuctf PWN write UPS (6)
Kept to implement redis autofailover (redisha) 14
Count the logarithm of points that cannot reach each other in an undirected graph [classic adjacency table building +dfs Statistics - > query set optimization] [query set manual / write details]
Meituan: data management and pit avoidance strategy summarized after stepping on Thunder for several years
snakemake 使用的注意事项
微博评论高性能高可用架构
二叉树oj题目
ThreadLocal详解
清华&智源 | CogView2:更快更好的文本图像生成模型