[英]Sqlite3 Python problem with wrong select output
This is my code:这是我的代码:
firstName = cursor.execute("SELECT firstName FROM students WHERE id = %s" % idRemove)
print(firstName)
And this is what i get in return:这就是我得到的回报:
<sqlite3.Cursor object at 0x00E88C20>
该函数返回一个游标对象。
print(firstName.fetchone())
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.