阅读以下代码,游标cursor被用来执行SQL查询并获取查询结果。( )
import sqlite3
conn = sqlite3.connect('example.db')
cursor = conn.cursor()
cursor.execute('SELECT * FROM table_name')
rows = cursor.fetchall()
for row in rows:
print(row)
cursor.close()
conn.close()
对
错