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 1746809522
Code that is graceful and clear is less likely to break.
Home
Notebook
Contact us