I have a tuple like this which is basically a DB record
record = ('R70:Congestion Ratio', 'pm_201204151900_KPI1.csv', 'pmexport_04_15_2012_20_00.tar.gz')
I am trying to convert it to tuple and then a string to get the query
"INSERT INTO PM_NEW_COUNTERS (COUNTER_NAME, CSV_FILE_NAME, TAR_FILE_NAME) VALUES %s" %(tuple(record))
However I am getting TypeError: not all arguments converted during string formatting What am I doing wrong ? Is there a better to achieve what I am trying to achieve ?