在hsqldb中如何做“select current_timestamp”?
发布时间:2020-12-12 16:37:18 所属栏目:MsSql教程 来源:网络整理
导读:甲骨文: select systimestamp from dual MySQL的: select current_timestamp SQL Server: select current_timestamp PostgreSQL的: select current_timestamp 问题是,如何获得HSQLDB的当前时间戳?我使用1.8.0.10版本 解决方法 你可以写 select current_t
甲骨文:
select systimestamp from dual MySQL的: select current_timestamp SQL Server: select current_timestamp PostgreSQL的: select current_timestamp 问题是,如何获得HSQLDB的当前时间戳?我使用1.8.0.10版本 解决方法你可以写select current_timestamp from tablename 其中tablename是数据库中的一个真实表. 查询的结果只是当前的时间戳. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |