sqlite3 Python问题与错误的选择输出



这是我的代码:

firstName = cursor.execute("SELECT firstName FROM students WHERE id = %s" % idRemove)
print(firstName)

这就是我得到的回报:

<sqlite3.Cursor object at 0x00E88C20>

函数返回光标对象。

print(firstName.fetchone())

最新更新