This content has been marked as final. Show 1 reply
Managed through some weird keyword search to find a nice little article. here is the solution.
cur = oracle.cursor() cur.execute("""SELECT * FROM V$DATABASE""") data = rows_to_dict_list(cur) for row in data: print row['PROTECTION_LEVEL']
def rows_to_dict_list(cursor): columns = [i for i in cursor.description] return [dict(zip(columns, row)) for row in cursor]
ps - I hate these new editors, Python requires indentations, but that does not mean I want to create and html table from it.