Jan-11-2018, 06:58 PM
How to extract query results of an SQL in a comma delimited string variable in Python
conn = ora.connect("HR", "oracle", "localhost/xe")
cur=conn.cursor()
cur.execute('select * from employees')
cur.fetchall()
The above is the part of my code. Now, how can I load these results into a string variable which has comma separated values from my employees table?
Thank you,
B
conn = ora.connect("HR", "oracle", "localhost/xe")
cur=conn.cursor()
cur.execute('select * from employees')
cur.fetchall()
The above is the part of my code. Now, how can I load these results into a string variable which has comma separated values from my employees table?
Thank you,
B