Hibernate HQL查詢語法貌似不支持直接使用某些函數,其中就包括to_number 。例如:
sql
select max(to_number(o.ordernum)) from className o
select max(cast(o.ordernum,int)) from className o
select * from ( select max(cast(projectatt0_.ORDERNUM as number(10,0))) as col_0_0_ from DB_PROJECT_ATTACHMENT projectatt0_