Skip to content
Monday, May 12, 2025

DBA Notes

DBA Notes
  • AWS
  • Oracle
  • Postgres
  • Linux
  • Docker
  • MySQL
  • mongodb
DBA Notes

Categories

  • AWS (9)
  • Docker (7)
  • General (4)
  • Linux (14)
  • mongodb (1)
  • MySQL (10)
  • notepad++ (2)
  • Oracle (90)
  • performance (44)
  • Postgres (92)
  • postgresql (8)
  • SQL (16)
  • Windows (7)
Oracle

convert seconds into mins hours in Oracle

Bulent Soylu March 14, 2022 oracle
select to_char(to_date(10000,'sssss'),'hh24:mi:ss') from dual;

or

SELECT 
    TO_CHAR(TRUNC(1000/3600),'FM9900') || ':' ||
    TO_CHAR(TRUNC(MOD(1000,3600)/60),'FM00') || ':' ||
    TO_CHAR(MOD(1000,60),'FM00')
FROM DUAL

Related posts:

  1. Oracle database Patch on windows platform
  2. Finding Empty Tablespaces in Oracle
  3. How to Lock, Unlock, Transfer Statistics in oracle
  4. Partition Pruning and NLS Settings

Post navigation

Previous Previous post: Oracle Standby Redo Logs vs Online Redo Logs:
Next Next post: Gather Schema Stats using DBMS_STATS.GATHER_SCHEMA_STATS
Log in

You may also like

  1. Oracle database Patch on windows platform
  2. Finding Empty Tablespaces in Oracle
  3. How to Lock, Unlock, Transfer Statistics in oracle
  4. Partition Pruning and NLS Settings

oracle (86)

Recent Posts

  • π—¦π—€π—Ÿ π—€π˜‚π—²π—Ώπ˜† π—˜π˜…π—²π—°π˜‚π˜π—Άπ—Όπ—» 𝗒𝗿𝗱𝗲𝗿!
  • TABLE FRAGMENTATION IN ORACLEΒ DATABASE
  • Configuring Huge Pages for MySQL Server on Red Hat Linux
  • HUGE PAGES AND POSTGRESQL
  • How to configure HugePages for Oracle Database Server

Archives

  • October 2024 (1)
  • August 2024 (1)
  • March 2024 (3)
  • January 2024 (3)
  • December 2023 (7)
  • October 2023 (17)
  • September 2023 (6)
  • August 2023 (23)
  • July 2023 (10)
  • June 2023 (4)
  • May 2023 (11)
  • April 2023 (15)
  • March 2023 (6)
  • February 2023 (2)
  • January 2023 (11)
  • December 2022 (1)
  • August 2022 (3)
  • March 2022 (10)
  • February 2022 (2)
  • January 2022 (6)
  • December 2021 (3)
  • November 2021 (7)
  • October 2021 (51)
  • September 2021 (4)

DBA Notes | Designed by: Theme Freesia | WordPress | © Copyright All right reserved