iteye_981
iteye_981
2010-04-27 23:02

帮我写一下SQL语句

  • hibernate
String hql="from ArticleInfo one limit 0,20";

Session session=HibernateSessionFactory.getSession();
Transaction tt=session.beginTransaction();

list=session.createQuery(hql).list();

tt.commit();
session.close();


unexpected token: limit near line 1, column 25 [from po.ArticleInfo one limit 0,20]

哪里错了??

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换