How to split string and save into an array in T-SQL

后端 未结 5 2171
忘掉有多难
忘掉有多难 2020-12-19 05:54

I am writing a cursor to populate data in new table from main table which contains data in below manner

Item    Colors
Shirt

5条回答
  •  遥遥无期
    2020-12-19 06:16

    Starting from SQL Server 2016 it could be done with OPENJSON and JSON_VALUE functions.

提交回复
热议问题