Q
Q
qwertiss2021-06-20 22:14:19
Python
qwertiss, 2021-06-20 22:14:19

Why am I only getting the first line of a sqlite3 query in python?

I make a request for sorting

cur.execute(f"SELECT * FROM users ORDER BY level DESC LIMIT 10")
u_massive=cur.fetchone()

Then I want to withdraw the top
rows = u_massive
for row in rows:
    print(row)

And I only get this
20000000XX,3200XXXX,MXXXXX,AnXXXXX,MaXXXXX,33686,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1 1.0.20000000XX


That is just one line. Help me please.

X - censorship

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2021-06-20
@Zoominger

fetchall()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question