sqlite3worker icon indicating copy to clipboard operation
sqlite3worker copied to clipboard

Get column headers

Open tmontanaro opened this issue 5 years ago • 0 comments

I would like to access column header, but it seems that at the current moment it is not possible, right?

Without the library I did it in this way:

cur.execute("SELECT * FROM measure")
if (cur.description is not None):
   columnNames = list(map(lambda x: x[0], cur.description))
rows = cur.fetchall()

tmontanaro avatar May 12 '20 08:05 tmontanaro