DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+1 =
Submit