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

推荐订阅源

L
LangChain Blog
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
D
Docker
WordPress大学
WordPress大学
罗磊的独立博客
J
Java Code Geeks
博客园 - 【当耐特】
博客园 - 司徒正美
雷峰网
雷峰网
H
Help Net Security
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
B
Blog

博客园 - 逗号李

任务安排 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);