Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

HOW TO use SQL IN Clause in cursor.execute() (no replies)

$
0
0
sTuple = ('a','b','c','d',....) # len(sTuple) > 1000
cursor.execute("""
SELECT *
FROM table
WHERE col_table IN (%s)
""",sTuple)

seems doesn't work.

Viewing all articles
Browse latest Browse all 384

Trending Articles