Thanks for the question, Choi.
Asked: September 29, 2016 - 6:48 am UTC
Last updated: November 28, 2022 - 6:04 am UTC
Version: Oracle SQL Developer 4.1.3.20
Viewed 10K+ times! This question is
SQL> select to_char(sysdate,'HH24:MI:SS') from dual; TO_CHAR( -------- 20:49:22
A reader, September 29, 2016 - 10:41 pm UTC
AHSAN, November 25, 2022 - 12:20 pm UTC
SQL> with t as 2 ( select 3 date '2021-01-01' dte, 4 '04:15:00' tim 5 from dual 6 ) 7 select 8 to_date( 9 to_char(dte,'DD-MM-YYYY')||tim, 10 'DD-MM-YYYYHH24:MI:SS') 11 from t; TO_DATE(TO_CHAR(DTE ------------------- 01/01/2021 04:15:00
BERFE, November 27, 2023 - 11:04 am UTC
Share and learn SQL and PL/SQL; free access to the latest version of Oracle Database!
Classes, workouts and quizzes on Oracle Database technologies. Expertise through exercise!