【发布时间】:2017-08-23 22:14:54
【问题描述】:
这段代码没有问题:
cursor.execute("select message from snippets where keyword=%s", (name,))
但是,我收到了IndexError: tuple index out of range
cursor.execute("select * from table where prescription like '\"%\"%s%'", (string,))
我哪里出错了?
【问题讨论】:
标签: python python-3.x psycopg2