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 1740388455
When you must fail, fail noisily and as soon as possible.
Home
Notebook
Contact us