Created
September 7, 2019 16:21
-
-
Save dtaivpp/8e6e1f74b8ef529be2c3ae08886b8807 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gen_table_sql(col_list): | |
# Joins all rows with a comma and a newline except for the last | |
query = ',\n'.join(col_list) | |
return query |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment