On 25 abr, 09:18, Alexandre Strzelewicz <strzelewicz.alexan...@gmail.com> wrote: > Hi, > > Is there a way to select a range of ids from database ? > > Actually I use db(db.articles.id>20).select(limitby=(20, 30)) > > But I found the SQL keyword 'between' that permits to select a range > of data between two values. > > Thanks
You can do the following: articles = db(db.articles.id.belongs(range(20,30)).select() Jose