to date oracle with time
-- TO_TIMESTAMP(date_string,'YYYY-MM-DD HH24:MI:SS')
SELECT TO_TIMESTAMP('2021-02-21 23:12:01','YYYY-MM-DD HH24:MI:SS') FROM DUAL;
to date oracle with time
-- TO_TIMESTAMP(date_string,'YYYY-MM-DD HH24:MI:SS')
SELECT TO_TIMESTAMP('2021-02-21 23:12:01','YYYY-MM-DD HH24:MI:SS') FROM DUAL;
oracle current date
-- In SESSION time zone
SELECT current_timestamp FROM dual; -- 2021-05-07 05:36:57.476000
SELECT current_timestamp(2) FROM dual; -- 2021-05-07 05:36:57.470000
SELECT current_date FROM dual; -- 2021-05-07 05:36:57
-- In SYSTEM on which database resides
SELECT systimestamp FROM dual; -- 2021-05-07 07:36:57.762000 +02:00
SELECT sysdate FROM dual; -- 2021-05-07 07:36:57
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us