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 1732508837
Save trees.
Home
Notebook
Contact us