On a second look.... this assumes that no record was deleted. It does not 
always select the last 10 records.

On Wednesday, 12 September 2012 11:29:04 UTC-5, Annet wrote:
>
> Hi Vladimir,
>
> Some time ago Anthony provided me with the following solution:
>
> maxID=db(db.node).select(db.node.id.max()).first()['MAX(node.id)']
> rows=db(db.node.id>=maxID-10).select(db.node.id
> ,db.node.computedName,orderby=~db.node.id)
>
>
> Kind regards,
>
> Annet
>

-- 



Reply via email to