oracle日期时间型timestamp的深入理解
2017-12-18 19:45
337 查看
1、字符型转成timestamp
2、timestamp转成date型
3、date型转成timestamp
4、获取timestamp格式的系统时间
select to_timestamp('01-10月-08 07.46.41.000000000 上午','dd-MON-yy hh:mi:ss.ff AM') from dual;
2、timestamp转成date型
select cast(to_timestamp('01-10月-08 07.46.41.000000000 上午','dd-MON-yy hh:mi:ss.ff AM') as date) timestamp_to_date from dual;
3、date型转成timestamp
select cast(sysdate as timestamp) date_to_timestamp from dual;
4、获取timestamp格式的系统时间
select systimestamp from dual;
相关文章推荐
- oracle日期时间型timestamp的深入理解
- oracle日期时间型timestamp的深入理解
- oracle日期时间型timestamp的深入理解
- oracle日期时间型timestamp的深入理解
- Oracle 日期时间型 Timestamp 学习
- oracle日期时间型timestamp相关学习
- oracle日期时间型Date和TimeStamp
- oracle日期时间型timestamp相关学习
- Oracle中Hint深入理解
- ORACLE锁机制深入理解
- ORACLE时间函数(SYSDATE)深入理解
- 深入理解 OUI(Oracle Universal Installer)
- ORACLE时间函数(SYSDATE)深入理解
- 深入理解Oracle表(1):ORDERED和USE_NL
- 【Maclean Liu技术分 享】深入理解Oracle中 Mutex的内部原理
- 【技术分享】开Oracle调优鹰眼,深入理解AWR性能报告
- Oracle直方图的深入理解
- oracle hint深入理解
- oracle 下 时间戳 timeStamp 如何将查询结果显示为普通日期类型