【发布时间】:2010-02-04 20:14:37
【问题描述】:
我想从数据库中获取中间行。
就像最后 10 行一样,我将使用限制:
return Doctrine_Query::create()
->select('v.*')
->from('Video v')
->where("v.community_id='$community_id' AND v.user_id='$user_id' AND v.published='$published'")
->orderBy('v.id DESC')
->limit(10)
->execute();
但是如果我想要 110-120 行怎么办?有人可以告诉我吗?如何在学说中编写这种查询
【问题讨论】: