Postgresql
psycopg2使用like查询的时候出线了这个异常
stackoverflow找到了解决办法,即在like后面多加两个%%符号
解决办法参考:
http://stackoverflow.com/questions/1734814/why-isnt-psycopg2-executing-any-of-my-sql-functions-indexerror-tuple-index-o/1735731#1735731
psycopg2使用like查询的时候出线了这个异常
tuple index out of rangestackoverflow找到了解决办法,即在like后面多加两个%%符号
解决办法参考:
http://stackoverflow.com/questions/1734814/why-isnt-psycopg2-executing-any-of-my-sql-functions-indexerror-tuple-index-o/1735731#1735731

本文介绍了一个关于使用PostgreSQL和Psycopg2时遇到的Like查询异常问题,并提供了解决方案,即通过在Like语句中添加额外的百分号来避免tuple index out of range错误。

962

被折叠的 条评论
为什么被折叠?



