Re: [web2py] updating more than one record.

2012-01-31 Thread Bruno Rocha
lets say you have a lot of records with somefield == "anything" db(db.mytable.somefield == "anything").update(field="something") On Tue, Jan 31, 2012 at 5:01 PM, Ashraf Mansour wrote: > Hi all, > > I am looking for an example that updates many records in a table. > ( similar to sql update) >

[web2py] updating more than one record.

2012-01-31 Thread Ashraf Mansour
Hi all, I am looking for an example that updates many records in a table. ( similar to sql update) It seems that crud.update is handling one record. I thought about looping (for) and/or executesql. An example will be perfect. Regards, Ashraf