Convert pyodbc.row to int list

It doesn't seem like it will be very difficult, but I'm at a loss.

How can I take pyodbc.row and convert it to an int list? It drives me crazy.

+4
source share
1 answer

A simple list comprehension works for me:

row = crsr.fetchone()
row_as_list = [x for x in row]
+11
source

Source: https://habr.com/ru/post/1613732/


All Articles