我想从数据库中获取中间行。
就像最后 10 行一样,我将使用 limit :
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 行怎么办?有人能告诉我吗?如何在学说中编写这种查询