Note to my self : Yes it possible... db(db.table.id > 0).update(field_to_be_updated=db.table. <http://db.table.id/>some_other_table_field*db.table. <http://db.table.id/> another_table_field)
Doh! Richard On Mon, Apr 23, 2018 at 2:58 PM, Richard <[email protected]> wrote: > Hello, > > Do we (if not : could we) support this use case : > > db(db.table.id > 0).update(field_to_be_updated=some_other_table_field* > another_table_field) > db.commit() > > So we don't have to : > > rows = db(db.table.id > 0).select(db.table.ALL) > > for row in rows: > db(db.table.id = row.id).update(...) > > ??? > > Thanks > > Richard > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

