A Rows object is just an array with database specific operations
added. So you can go

rows = db(db.table.id > 0).select()
rows[n].delete_record()

if you know what (n) is.

first() syntax has been added since the manual was published. However,
it is just a shortcut to the following, but returns None instead of an
index error if there are no records.

.first() - rows[0]
.last() - rows[-1]

May I ask what design you are using that you actually need to delete N
row and you don't know its ID ?

-Thadeus





On Wed, Feb 10, 2010 at 12:05 PM, Auden RovelleQuartz
<oves....@gmail.com> wrote:
> e to understand why/how it works - is that "first()" syntax covered in any
> reference manual or tutorial that you are aw

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to