create function [dbo].[f_splitstr] (@param varchar(max), -- 拼接的字符串 @separator varchar(1)) -- 分隔符 returns table as return ( select value as returnvalue from string_split(@sourcesql,@strseprate) )