Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们将 SQL SERVER 与 JPA 2.4.2 一起使用。
我想DATEDIFF(hour ,'2013/05/05' , '2013/08/20')通过FUNC()使用JPQL.
DATEDIFF(hour ,'2013/05/05' , '2013/08/20')
FUNC()
JPQL
你可以试试这个FUNCTION('DATEDIFF', :hour ,'2013/05/05' , '2013/08/20')
FUNCTION('DATEDIFF', :hour ,'2013/05/05' , '2013/08/20')
FUNC是 EclipseLink 特定的。可以FUNCTION与 JPA 2.4 一起使用。
FUNC
FUNCTION