下表:
+-----------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+-------------+------+-----+---------+-------+ | Benutzer | varchar(50) | YES | | NULL | | | Confirmed | tinyint(1) | YES | | NULL | | +-----------+-------------+------+-----+---------+-------+
页: 1
如果我乘坐一枚炮弹在我的sql console执行:
select Benutzer from UserConfirm where Benutzer = { gid : tamer , uid : tamer }
它发挥作用!
在我的sql-python,出现了错误:
TypeError: long object is not callable
What did I make wrong?! Here is my python code:
cursor = self.__db.cursor().execute( select * from UserConfirm where Benutzer = + ds + )
return cursor().fetchrow()
我愿感谢各位。