↧
Answer by Eugene for How to get Date Difference in hour using HQL
HQL supports EXTRACT(... FROM ...) function, and EPOCH keyword although it is not mentioned in documentstion.HQL also supports no-argument LOCALTIMESTAMP function (for Postgres and MySQL dialects)....
View ArticleHow to get Date Difference in hour using HQL
I've to get difference between current date and the date stored in database in hours. In PostgreSQL, I'm able to do it using the following query:SELECT storage_time, extract(epoch from (localtimestamp...
View Article
More Pages to Explore .....