Sqlite3 Python问题,选择输出错误

2024-10-02 18:17:32 发布

您现在位置:Python中文网/ 问答频道 /正文

这是我的代码:

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

这就是我得到的回报:

<sqlite3.Cursor object at 0x00E88C20>

Tags: 代码fromidexecuteobjectfirstnamewhereselect