Comma Delimited SQL string Need to separated

前端 未结 11 1925
[愿得一人]
[愿得一人] 2020-12-20 23:39

I have this string that i am getting from .net application A,B,C,D,E,F,

I wanted to write a sql select statement like

set @string = \'A,B,C,D,E,F\'

         


        
11条回答
  •  礼貌的吻别
    2020-12-21 00:16

    Nothing simple. You can write a function that will take in that list and split it apart into a table you can query against in the IN() statement.

提交回复
热议问题