I have a use case where my SQL Script is having a variable with comma separated values.
whitelistURL = abc.com,xyz.com
I have to run insert command on all the values of the variable. Something like split with comma and run insert on abc.com and insert on xyz.com
Can someone please suggest the best way to do it. I am new to SQL.
I am using SQL Server 2014.