Reputation: 21
How do I extract all the value from a column separated by commas into a separate table? There could be up to 14 different values in the column.
Example:
2,8,5,10,12
Upvotes: 1
Views: 357
Reputation: 4036
If you are using SQL Server 2016, then you may be in luck. You can use the STRING_SPLIT
function.
Otherwise, it cannot be done easily.
Upvotes: 1