if you have a SQL db then you can order them by reverse id

db(....).select(orderby=~db.tablename.id,limitby=(0,10))

otherwise you should have some timestamp field (as created_on in 
auth.signature) and use that field.

On Wednesday, 12 September 2012 08:09:07 UTC-5, Vladimir Makarov wrote:
>
> So, I need to select data from the table but the only ten last rows (with 
> highest id).
> I have already tried with select all records and then use while statement 
> but I think there is another way.
> Any ideas? Thanks!
>

-- 



Reply via email to