Found the solution using .belongs() terça-feira, 16 de Abril de 2019 às 16:07:48 UTC+1, João Matos escreveu: > > Does anyone know if web2py supports the IN operator in a query? > > Doesn't seem to accept this > > db(db.wo.id in [1,2,3]).select() > > that would translate to SQL like this > > SELECT * FROM wo WHERE id IN (1, 2, 3) > >
-- 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.