Re: [web2py] query with multiple values

2014-07-09 Thread Vinicius Assef
My fault. I meant "belongs", as Leonel wrote. On Wed, Jul 9, 2014 at 1:16 PM, Fabiano Almeida wrote: > Hi Vinicius, > > I tested it contains, but it did not work with integer field. > > Thanks, > > Fabiano. > > > 2014-07-09 12:55 GMT-03:00 Vinicius Assef : > >> Use contains [1]. >> >> [1] >> http

Re: [web2py] query with multiple values

2014-07-09 Thread Fabiano Almeida
Hi Vinicius, I tested it contains, but it did not work with integer field. Thanks, Fabiano. 2014-07-09 12:55 GMT-03:00 Vinicius Assef : > Use contains [1]. > > [1] > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#like--regexp--startswith--endswith--contains--uppe

Re: [web2py] query with multiple values

2014-07-09 Thread Vinicius Assef
Use contains [1]. [1] http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#like--regexp--startswith--endswith--contains--upper--lower On Wed, Jul 9, 2014 at 12:47 PM, Fabiano Almeida wrote: > Hi, > > How to make a query with multiple values to field? > > > q = db

[web2py] query with multiple values

2014-07-09 Thread Fabiano Almeida
Hi, How to make a query with multiple values to field? q = db(db.auth_membership.group_id in [2,3,4]).select() thanks, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2p