惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
J
Java Code Geeks
H
Help Net Security
Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
Stack Overflow Blog
Stack Overflow Blog
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
U
Unit 42
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
小众软件
小众软件
博客园 - 叶小钗
D
Docker
量子位
P
Proofpoint News Feed
博客园_首页
T
Tailwind CSS Blog
F
Fortinet All Blogs

博客园 - 逗号李

任务安排 outofmemory issue for stringbuilder connection string for PostgreSql 如何建立测试生态系统 Eclipse 运行测试每次都先重新build 提高软件测试能力的19条建议 敏捷-1 15个JavaScript Web UI库 关于 分布式Oracle中 database link csharp notes - 3 csharp notes – 2 csharp notes - 1 CHM文件无法显示问题 - 逗号李 - 博客园 MVC2 leanring –1 Cocoa hibernate基础[转] hibernate基础[转] windows live writer 配置出错? 如何在用户控件中操作页面中的控件?
Oracle 中统计时间间隔的方法
逗号李 · 2010-03-26 · via 博客园 - 逗号李

1. using DBMS_UTILITY.GET_TIME

s_date pls_ineteger;

ln_interval pls_integer :=0;

s_date := DBMS_UTILITY.GET_TIME;

--do something

ln_interval := ln_interval + (DBMS_UTILITY.GET_TIME-s_date);

--some other things

--ouput interval

DBMS_OUTPUT.PUT_LINE('time=: ' || ln_interval/100 || ' sec');

2. using systimestamp

s_date timestamp;

temp varchar2(1000);

s_date:=systimestamp;

--do something

temp := systimestamp-s_date;

DBMS_OUTPUT.PUT_LINE('time=: ' || temp);