---
title: "当前系统时间在给定日期之间hql查询语句"
author: "Edision"
date: "2015-05-20T11:36:18Z"
tags: []
categories: ["数据库"]
slug: "hql"
draft: false
lastmod: "2015-05-20T11:36:18Z"
id: 2212753
url: "https://edision.iteye.com/blog/2212753"
---

FROM Entity sa WHERE sa.state=1 and   sysDate()   BETWEEN sa.beginDate AND sa.endDate order by sa.id asc