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
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
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
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
4 matches
Mail list logo