I get from my DB the following return, when I use the sql command SELECT DISTINCT RezeptID
FROM Rezepte;
:
((1L,), (13L,), (14L,), (15L,))
Now I want to work with this values. Normally I use for single values something like this:
a=cursor.execute(sql_command)
(a, )=cursor.fetchone()
But then I get of course only the first value, the "1" back. How can I work with all these values? It would be optimal when I can put all these values in a array