日期:2014-05-16 浏览次数:20458 次
select top n from tablename where table_id='id' order by table_id;
Query query = session.createQuery("from PicImage as pic order by pic.id desc").setFirstResult(0).setMaxResults(5);