Skip to content
Home ยป How do I split a string into multiple strings in SQL?

How do I split a string into multiple strings in SQL?

SQL STRING_SPLIT function

SQL Server STRING_SPLIT function is used to split a string into a table that consists of rows of substrings based on a specified separator. This function was introduced in SQL Server 2016 .

STRING_SPLIT requires the compatibility level to be at least 130. When the level is less than 130, SQL Server is unable to find the STRING_SPLIT function.

Loading