0
我得到一個錯誤與下面的代碼:Python的web.py錯誤OperationalError:近「名」:語法錯誤
class SomePage:
def GET(self,name):
conn = sqlite3.connect('./DB/ershou.db')
LjDB = conn.cursor()
searcher = web.input()
DBsearch = LjDB.execute("select * from caiji where post like '%%%s%%'"%(searcher))
for ss in DBsearch:
print ss[1],
print ss[2]
return searcher.name
這是我說的錯誤:
OperationalError: near "name": syntax error
是什麼導致了這個錯誤,我該如何解決?