creating comma seperated string to be given as input to sql “IN” clause

前端 未结 6 1964
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-23 03:18

I want a string to be given as input to the SQL \"IN\" clause,where in i want a list of strings separated by commas

6条回答
  •  再見小時候
    2021-01-23 03:43

    An unusual solution: If the Strings are in ArrayList or LinkedList (sub class of java.util.AbstractCollection), call toString() which returns "[e1, e2, e3...]". Then you could handle the string.

提交回复
热议问题