简体   繁体   English

Oracle DB:如何获取current_time?

[英]Oracle db: how to get current_time?

Mysql has current_time. MySQL的具有current_time。 What is the equivalent for oracle db? oracle db的等效项是什么?

select current_time

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

You can use SYSDATE : 您可以使用SYSDATE

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 基本SQL CURRENT_TIME()查询 - Basic SQL CURRENT_TIME() query 从 PostgreSQL 的时间戳中减去 current_time - subtract current_time from timestamp in PostgreSQL 如何从 Oracle 中的当前时间返回 24 小时 - How to get 24 hours back time from current time in Oracle 在Oracle SQL中,如何仅获取当前一周的时间? - In Oracle SQL, how to get the time for only this current week? 通过查询通过任何方式获取基于SQL / PSQL / ORACLE db中时区的当前位置日期 - Any way there to get current date of location based on time zone in SQL/PSQL/ORACLE db through query 我更改系统日期时间后,亚洲/加尔各答的Postgresql current_time戳会更改 - Postgresql current_time stamp in Asia/kolkata changes when I change system date time 如何在此Oracle DB表中将Date字段的值设置为当前日期时间? - How to set the value of a Date field to the current date time in this Oracle DB table? sqlalchemy.exc.ArgumentError:此 text() 构造未定义名为“current_time”的绑定参数 - sqlalchemy.exc.ArgumentError: This text() construct doesn't define a bound parameter named 'current_time' 无论数据库供应商如何,如何通过JDBC从数据库服务器获取当前日期/时间? - How can I get the current date/time from a DB server via JDBC, regardless of DB vendor? 如何在Oracle中获得当前的GMT - How to get current GMT in Oracle
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM