Can you split a database table column value of type VARCHAR into multiple values using a delimiter?
So when fetching data I would like to split values like text|another|other using pipe | as a delimiter.
We are using stored procedures and T-SQL, I have somewhat basic understanding of SQL, but my understanding is that using STRING_SPLIT https://learn.microsoft.com/en-us/sql/t-sql/functions/string-split-transact-sql?view=sql-server-ver15 ths should be possible.
Can anyone assist me with more details?
SELECT value FROM STRING_SPLIT('text|another|other', '|');but does only work with SQL Server 2016+