CREATE FUNCTION [dbo].[fnQuerySplit] ( @string VARCHAR(MAX) ,--待分割字符串 )--分割符 ) ) ) AS BEGIN DECLARE @begin INT , @end INT , ); ; SET @end = CHARINDEX(@separator, @string, @begin); ) BEGIN SET @item = SUBSTRING(@string, @begin, @end - @begin); INSERT…