eastwater
eastwater

Reputation: 5640

Oracle db: how to get current_time?

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

select current_time

current_time
--------------------
15:30:16

Upvotes: 1

Views: 902

Answers (1)

Yogesh Sharma
Yogesh Sharma

Reputation: 50173

You can use SYSDATE:

SELECT TO_CHAR(SYSDATE, 'HH24:MI:SS') "current_time"
FROM DUAL;

Upvotes: 2

Related Questions