Skip to content
Advertisement

Python – Passing list of fields as column to SQL query

I am trying to pass a list of columns into a SQL query in Python. This just returns back the list but not the actual columns as shown:

JavaScript

Advertisement

Answer

You want to do a join of the list:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement