本文介绍了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
发布评论