(1)select * from comment where trunc(createtime) between trunc(sysdate)-2 and trunc(sysdate) //列出最近三天的评论
  实践通过,但trunc是oracle函数,即除oracle以外的函数不能够使用(不建议使用,移植性差)
 (2)select * from comment where createtime > sysdate-2
  实践通过,对所有的数据库都通用
 (3)select * from comment where createtime > new Date() -2
  实践未通过

但是在grails下使用
def list = Comment.findAllByCreateTimeGreaterThan(new Date() - 2, params)为什么是可以的呢?params是分页参数