Python和SQlite
我试图保存游标_1的值, 但我做不到Python和SQlite,python,sqlite,Python,Sqlite,我试图保存游标_1的值, 但我做不到 cursor_1 = conn.execute("SELECT cost from test where name like 'fish'") for row in cursor_1: print "cost = ", row[0] 我想保存每个“游标\u 1”值 data = conn.execute("SELECT cost from test where name like 'fish'").fetchall() 此外,无论您在做什么,都不需要
cursor_1 = conn.execute("SELECT cost from test where name like 'fish'")
for row in cursor_1:
print "cost = ", row[0]
我想保存每个“游标\u 1”值
data = conn.execute("SELECT cost from test where name like 'fish'").fetchall()
此外,无论您在做什么,都不需要使用光标