Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sqlalchemy where in query

session.execute(
    select(
        [MyUserTable.c.id, MyUserTable.c.name], 
        MyUserTable.c.id.in_((123, 456))
    )
).fetchall()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sqlalchemy #query
ADD COMMENT
Topic
Name
4+5 =