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)
>
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
2 matches
Mail list logo