移除字符串左边的字符: CREATE FUNCTION [dbo].[RemoveLeftChar] ( @Expression varchar(max), @char varchar(4))RETURNS varchar(max)ASBEGIN WHILE LEN(@Expression)>0 AND CHARINDEX(@char,@Expression)=1 BEGIN SET @Expression=SUBSTRING(@Expression,LEN(@char)+1,LEN(@Expr