I\'m trying to find the best way to format an sql query string. When I\'m debugging my application I\'d like to log to file all the sql query strings, and it is important t
you could put the field names into an array "fields", and then:
sql = 'select %s from table where condition1=1 and condition2=2' % ( ', '.join(fields))