db(query).update(**{field_name: value}) Anthony
On Thursday, June 28, 2012 9:40:08 PM UTC-4, naveed wrote: > > I understand I can do an update in web2py like so: > > db(query).update(field=value) > > where field corresponds to a column in the table. > > If I have the column name as a string, how can I use this string variable > to specify the column to do an update? >