1

Mysql has current_time. What is the equivalent for oracle db?

select current_time

current_time
--------------------
15:30:16
eastwater
  • 4,624
  • 9
  • 49
  • 118

1 Answers1

2

You can use SYSDATE:

SELECT TO_CHAR(SYSDATE, 'HH24:MI:SS') "current_time"
FROM DUAL;
Yogesh Sharma
  • 49,870
  • 5
  • 26
  • 52