- #1
Punkyc7
- 420
- 0
I am using python to get tuples from a db.
I am doing
cur.execute("Select Statement");
I use cur.fetchall to get the tuples.
My question is how do you iterate over the returned tuples and store the columns into an array? I want to iterate over n tuples, not all the returned results. Is storing the results into an array necessary or is the returned tuple considered an or a list?
Thanks for the help!
I am doing
cur.execute("Select Statement");
I use cur.fetchall to get the tuples.
My question is how do you iterate over the returned tuples and store the columns into an array? I want to iterate over n tuples, not all the returned results. Is storing the results into an array necessary or is the returned tuple considered an or a list?
Thanks for the help!