db(db.table.id==3).update(db.table.field=db.table.field+1) This syntax does not work on GAE.
Massimo On Sep 26, 4:07 pm, Joe Barnhart <[email protected]> wrote: > You need this in addition to the field "id" which is automatically added to > every table in web2py, and holds an integer that is auto-incremented? > > On Sat, Sep 26, 2009 at 12:53 PM, Leandro - ProfessionalIT < > > [email protected]> wrote: > > > Hi, > > I need create a field in my table that receive the last value + 1 > > when I create a new record. For example to a questions table. In this > > table I have a ID and a number of question field. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

