Use of IN statement in query #391
Unanswered
maaike3515
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I hope someone can help me find an answer on this question. I'm using the
INstatement in SQL quite a lot to select multiple specific values from a column for example. However, it looks like theINstatement is not supported in the Trino Python client.An example of how I would like to use the
INstatement (but this is giving an error):query_str = """SELECT * FROM table WHERE col1 = ? AND col2 IN (?) LIMIT 100"""result = trino_client.run_query(query=query_str, params=[1, (2, 3, 4)])Does anyone know if there is another way to get the same result or how I can use the
INstatement?Beta Was this translation helpful? Give feedback.
All reactions