an update operation NEEDS an update() call.

given the records you want to update are defined by a condition, namely

db.table.column_1 == somevalue

and the update on column_2 resulting in all those records equal to 
"somevalue_2", you need to write

db(db.table.column_1 == somevalue).update(column_2 = somevalue_2)

 

On Saturday, October 24, 2015 at 7:27:20 AM UTC+2, Anthony Smith wrote:
>
> what I want to is update the stock_task.withhold until date with the 
> result of db.product.withholding_
> period (int) + stock_task.completed date (date)
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to