print column name
This commit is contained in:
@@ -44,6 +44,12 @@ class Members:
|
|||||||
cursor.execute(sqv)
|
cursor.execute(sqv)
|
||||||
#cursor.execute(sqv, x)
|
#cursor.execute(sqv, x)
|
||||||
member = cursor.fetchall()
|
member = cursor.fetchall()
|
||||||
|
|
||||||
|
column_names = [row[0] for row in cursor]
|
||||||
|
|
||||||
|
print("Column names:\n")
|
||||||
|
for i in column_names:
|
||||||
|
print(i)
|
||||||
# cursor.execute(sqv,x)
|
# cursor.execute(sqv,x)
|
||||||
# result = cursor.fetchall()
|
# result = cursor.fetchall()
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user