Search A Set In Sqlalchemy Query
I have 2 databases in completely different servers with no relationship between the two. There's one column in both databases that has identical data. I need to match based on that
Solution 1:
You should use in_(...)
instead of like(sites)
?
Actually, in_([s[0] for s in sites])
in order to unwrap the tuples from the sites set.
Post a Comment for "Search A Set In Sqlalchemy Query"