Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does oralce calculate the time difference

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces oralce how to calculate the time difference, the article is very detailed, has a certain reference value, interested friends must read it!

Realization of calculating time difference in oralce

Query the number of milliseconds between the system time and the given time

Select ceil ((sysdate-To_date ('2017-03-23 00 yyyy-mm-dd hh34-mi-ss')) * 24 * 60 * 60 * 1000) FROM DUAL

Calculate the difference in seconds between the dcur_state_start_date (timestamp type) field values of the first data in the account table

Select ceil ((sysdate-TO_DATE (TO_CHAR (a. Dcurries statehands startmate HH24:MI:SS'), 'YYYY-MM-DD HH24:MI:SS') * 24 * 60 * 60 * 1000) from account a where rownum = 1

Remarks

* 24 (hours)

* 60 (min)

* 60 (seconds)

* 1000 (Ms)

The above is all the contents of the article "how to calculate the time difference in oralce". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report