Skip to navigation
Return only a simple list from a database call within python
07.12.13
example: c = con.cursor() c.execute("select id from TABLE ORDER BY id ") rows = [item[0] for item in c.fetchall()] will return a simple list with ids
Reply
Anonymous
Information Epoch 1752364317
Use simple algorithms as well as simple data structures.
Home
Notebook
Contact us