web2py dal sql 'like' equivalent
Asked Answered
S

1

5

Hello everyone i'm wondering if there is a 'like' equivalent in web2py dal.

I would like to do something like this:

db().select(db.person.name like 'JA')

thank you very much for your help!

Jason

Skaw answered 11/7, 2014 at 18:52 Comment(0)
S
7

just found my answer

db().select(db.person.name.like('JA%'))
Skaw answered 11/7, 2014 at 19:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.