[mw_shl_code=sql,true]select * from tab_name1 where create_date>=(select max(create_date) from tab_name2) and create_date<'XXXXX'[/mw_shl_code]
执行以上HQL报错
[mw_shl_code=sql,true]select * from tab_name1 where create_date in (select max(create_date) from tab_name2) [/mw_shl_code]
执行以上HQL可以。