On Aug 1, 2009, at 8:23 AM, mdipierro wrote:

> The way I think of it is
>
> db(....) defines a set of records
>
> .count() counts the records of the set
> .delete() deletes the recods
> .update(....) updates the records
> .select(...) extracts info from the records ... specifies what and
> how.
>
> .select(db.table.field1,db.table.field2) extracts two fields
> .select(orderby=db.table.field1) extract all fields sorted by field1
>
> db(query1)(query2) compute the query2 subset of db(query1)
>
> How this makes sense.

This is quite useful as an explanation; maybe it could find its way  
into the manual.

My own experience, using the first edition, was that I ended up  
getting confused by what appeared to be multiple ways of expressing  
the same thing, at least judging by the existing examples. 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to