insert string problems..

Abandoned besturk at gmail.com
Sun Oct 28 08:33:45 CET 2007


Also..
a="123,245,1235,663"
cursor.execute("SELECT id, name FROM data WHERE id in (%s)", (a,))
In this query must be:
SELECT id, name FROM data WHERE id in (123,245,1235,663)
but it looks:
SELECT id, name FROM data WHERE id in ("123,245,1235,663")
How can i delete " ?




More information about the Python-list mailing list