thelist=[row.Name for row in db().select(db.Record.Name)] On Apr 1, 1:41 am, Magnitus <eric_vallee2...@yahoo.ca> wrote: > Hi, > > assuming that I have a "Record" table with a field called "Name" in > the database (all also that there are a bunch of other fields for that > table). > > Assume that I make the following query: > > Rows = db().select(db.Record.ALL) > > Is there a way to directly (with one line without having to iterate > through each row and create the tuple/list manually) fetch the "Name" > field for all the rows in a tuple/List?
-- 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.