HQL:
this.find(FROM Emp WHERE birthday between to_date(?,'yyyy-mm-dd') and to_date(?,'yyyy-mm-dd')",startDate,endDate)
注:
startDate和endDate是字符串,且格式必须是”2017-05-21”这种格式。
HQL:
this.find(FROM Emp WHERE birthday between to_date(?,'yyyy-mm-dd') and to_date(?,'yyyy-mm-dd')",startDate,endDate)
注:
startDate和endDate是字符串,且格式必须是”2017-05-21”这种格式。