HQL的current_timestamp()如何工作? [英] How does HQL's current_timestamp() work?

查看:93
本文介绍了HQL的current_timestamp()如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hql函数current_timestamp()是否使用运行Java代码的服务器或运行数据库的服务器的时间?

Does the hql function current_timestamp() use the time from the server the java code is running on or the server the database is running on?

推荐答案

HQL查询被转换为SQL查询,并且SQL查询由数据库执行.因此, current_timestamp()等效的SQL函数将在您的数据库服务器上执行.

HQL queries are translated to SQL queries, and SQL queries are executed by the database. So the current_timestamp() equivalent SQL function will be executed on your database server.

这篇关于HQL的current_timestamp()如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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