Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python concat list to sql query string

l = [1, 5, 8]
sql_query = 'select name from studens where id in (' + ','.join(map(str, l)) + ')'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #concat #list #sql #query #string
ADD COMMENT
Topic
Name
5+1 =