We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f57073e commit d8c94deCopy full SHA for d8c94de
mysql.py
@@ -10,7 +10,9 @@
10
cur1.execute("SELECT * FROM information_schema.tables WHERE table_schema ='rastey';")
11
cur1.execute("SELECT * from information_schema.tables where table_schema = 'rastey'")
12
cur.execute("SELECT * from vendor_users_log")
13
-
+columns = cur.description
14
+results = [{columns[index][0]: column for index, column in enumerate(value)} for value in cur.fetchall()]
15
+cur.close()
16
17
18
0 commit comments