sql SELECT WHERE-绑定不足
sql SELECT WHERE-insufficient bindings
我只使用了两列 1.name 2.field。我需要检索字段为 =?如何 specify.i 不想要这个 --> (self.topic_space,)) 我需要第二个 column.so 逗号
这是我的代码:
cur.execute("SELECT name FROM developers_info WHERE field=?",(,self.topic_space))
File "administrator.py", line 19
cur.execute("SELECT * FROM developers_info WHERE field=?",(,self.topic_space))
^
这是我的错误:
SyntaxError: invalid syntax
看来您可能使用了恶意逗号。试试这个
cur.execute("SELECT name FROM developers_info WHERE field=?",(self.topic_space))
我只使用了两列 1.name 2.field。我需要检索字段为 =?如何 specify.i 不想要这个 --> (self.topic_space,)) 我需要第二个 column.so 逗号
这是我的代码:
cur.execute("SELECT name FROM developers_info WHERE field=?",(,self.topic_space))
File "administrator.py", line 19
cur.execute("SELECT * FROM developers_info WHERE field=?",(,self.topic_space))
^
这是我的错误:
SyntaxError: invalid syntax
看来您可能使用了恶意逗号。试试这个
cur.execute("SELECT name FROM developers_info WHERE field=?",(self.topic_space))