如何“选择current_timestamp”?在hsqldb中? [英] How to do "select current_timestamp" in hsqldb?

查看:166
本文介绍了如何“选择current_timestamp”?在hsqldb中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Oracle:

 从双


MySQL:

 选择current_timestamp 

SQL Server:

 选择current_timestamp 

PostgreSQL:

  select current_timestamp 

问题是,如何在 HSQLDB ?我使用的版本是1.8.0.10

解决方案

您可以编写

 从表名

中选择current_timestamp其中表名是数据库中的真实表。



查询结果仅为当前时间戳。


Oracle:

select systimestamp from dual

MySQL:

select current_timestamp

SQL Server:

select current_timestamp

PostgreSQL:

select current_timestamp

The question is, how can I get the current timestamp in HSQLDB? I use version 1.8.0.10

解决方案

You can write

select current_timestamp from tablename  

where tablename is a real table in your database.

The result of the query is only the current timestamp.

这篇关于如何“选择current_timestamp”?在hsqldb中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆