On Wed, Jun 6, 2012 at 11:51 AM, Tomas Schertel <[email protected]> wrote:
> How can I create a db select using two "where"?
> Is this right?
>
> results = db.select('mytable', where="id>100 and active=1")

Perhaps you're looking for this?

 http://webpy.org/cookbook/where_dict

or you could just write your sql string explicitly and do this:

 db.query(sql)

  John





-- 
  John

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to