Same rules as usual apply -- you need parentheses: (db.amostras.n==203027) & (db.amostras.estante1=="_E_000")
Anthony On Thursday, June 9, 2016 at 5:29:39 AM UTC-4, Ramos wrote: > > hello > how can i, via admin query a table using in the input box more than 1 > field to query? > > i tried > db.amostras.n==203027 & db.amostras.estante1=="_E_000" - >error > db.amostras.n==203027 and db.amostras.estante1=="_E_000" -> no error but > seems to search only the second field (db.amostras.estante1=="_E_000) > > how can i query based on 2 fields? > > Regards > António > > -- 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.