这工作正常:
cc.execute("select * from books where name like '%oo%'")
但如果第二个参数通过:
cursor.execute("select * from books where name like '%oo%' OFFSET % LIMIT %", (0,1))
Psycopg 错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: tuple index out of range
如何避免这个错误?