On Jun 2, 2:04 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > And for a given field... > > db(db.table.id > 0).update(field = None)
You can see all this in the "count / delete / update" section of http://www.web2py.com/book/default/section/6/5; The behavior of truncate (i.e., resetting counter) is http://www.web2py.com/book/default/section/6/4?search=truncate and for unit tests, or development where you want to re-define a table, there is: db.my_table.drop() (also in book, section 6/4). Note that for update, the selector is general, e.g. db( my_selector_clause ).update( field=value ) > > -- > Thadeus > > On Wed, Jun 2, 2010 at 2:04 PM, Thadeus Burgess <thade...@thadeusb.com> wrote: > > db.table.truncate() > > > -- > > Thadeus > > > On Wed, Jun 2, 2010 at 1:05 PM, Vasile Ermicioi <elff...@gmail.com> wrote: > >> db(db.table.id > 0).delete() > >> no sure what you mean by entries in a given field