How Do I Split a Delimited String in SQL Server Without Creating a Function?

前端 未结 11 1721
慢半拍i
慢半拍i 2020-11-29 08:28

I\'m working with a SQL Server database. I have a column which contains a delimited list, and I need to write a query which splits the values of the list into rows. From bro

11条回答
  •  执念已碎
    2020-11-29 09:15

    I would just take one of the many functions that creates a table and instead of having it return the value put it in a table variable. Then use the table variable. Here is one example that returns a table.

    http://www.codeproject.com/KB/database/SQL_UDF_to_Parse_a_String.aspx

提交回复
热议问题