Oct-05-2022, 11:58 PM
(This post was last modified: Oct-06-2022, 05:24 AM by Yoriz.
Edit Reason: Added code tags
)
Hi Team,
how to convert tuple value into a string.
after running sql query I get output in tuple.
want to convert it into string.
Expected output
how to convert tuple value into a string.
after running sql query I get output in tuple.
want to convert it into string.
1 2 |
sql_data = cursor.fetchall()[ 0 ] sql_data = ( 'AUS' ,) # tuple value , expected only 'AUS' |
Output:sql_string = 'AUS'