Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for IN SQL statement #659

Closed
guruyaya opened this issue May 9, 2021 · 1 comment
Closed

support for IN SQL statement #659

guruyaya opened this issue May 9, 2021 · 1 comment

Comments

@guruyaya
Copy link

guruyaya commented May 9, 2021

To be honest I was sure pydal has one. I cannot find it, so - i guess it's not in
I miss the option to use IN statement in queries. For example

SELECT `table`.`name` FROM `table` WHERE `id` IN ('1', '2', '3')

I'd imaging the syntax going something like this:

db(db.table.id.isin([1,2,3])).select(db.table.name)
@mdipierro
Copy link
Contributor

mdipierro commented May 9, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants