create split string from table select SQL code example
Example 1: create table split string function in sql server
SELECT
first_name,
last_name,
value phone
FROM
sales.contacts
CROSS APPLY STRING_SPLIT(phones, ',');
Example 2: sql server split string and insert into table select
SELECT STRING_SPLIT (STRING, SPECIALCHARACTER)