How to pass a comma separated list to a stored procedure?

前端 未结 11 2031
情书的邮戳
情书的邮戳 2020-12-10 01:32

So I have a Sybase stored proc that takes 1 parameter that\'s a comma separated list of strings and runs a query with in in an IN() clause:

CREATE PROCEDURE          


        
11条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 02:29

    Regarding Kevin's idea of passing the parameter to a function that splits the text into a table, here's my implementation of that function from a few years back. Works a treat.

    Splitting Text into Words in SQL

提交回复
热议问题