Skip to content
Friday, May 27, 2022

DBA Notes

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

Categories

  • AWS (2)
    • EC2 (1)
  • Docker (7)
  • General (2)
  • Linux (7)
  • MySQL (3)
  • notepad++ (2)
  • Oracle (19)
  • Postgres (53)
    • Index (9)
      • Bloom (1)
      • BRIN (1)
      • BTree (1)
      • GIN (1)
      • GIST (1)
      • Hash (1)
      • RUM (1)
      • SP-Gist (1)
    • pgpool (1)
  • SQL (8)
  • WSL (2)
Oracle

convert seconds into mins hours in Oracle

Bulent Soylu March 14, 2022
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. Display big numbers in SQLPLUS
  2. CURSOR_SHARING(EXACT/FORCE/SIMILAR) In ORACLE
  3. DBA Interview Questions
  4. Oracle Standby Redo Logs vs Online Redo Logs:

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. Display big numbers in SQLPLUS
  2. CURSOR_SHARING(EXACT/FORCE/SIMILAR) In ORACLE
  3. DBA Interview Questions
  4. Oracle Standby Redo Logs vs Online Redo Logs:

Recent Posts

  • Export Import statistics with dbms_stats in Oracle
  • Oracle Version Numbers
  • Find password for database link (<= 11.2.0.2)!
  • How to check progress of a long running statistics gathering job
  • Gather Schema Stats using DBMS_STATS.GATHER_SCHEMA_STATS

Archives

  • March 2022 (10)
  • February 2022 (2)
  • January 2022 (6)
  • December 2021 (3)
  • November 2021 (7)
  • October 2021 (51)
  • September 2021 (4)

[s2Member-Security-Badge v="2" /]

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