MySQL数据库, hibernate框架,
hql语句:
from Product p where p.isdelete=0 and p.uptime between '"+date1+"' and '"+date2+"' order by p.votenum desc"
注:
p.uptime ,在数据库中是DATETIME类型;
date1、date2是“ yyyy-MM-dd HH:mm:ss” 格式的字符串。
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。