简体   繁体   English

Sqlite3 Python 问题选择输出错误

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM