获取规格内数字
ALTER FUNCTION [dbo].[m_getnumber]( @my_str varchar(100))
returns varchar(100)
begin
declare @length int
declare @uni_int int
declare @i int
set @i = 0
set @length = len(@my_str)
while (@i <@length)
BEGIN
set @uni_int = unicode(substring(@my_str,@i+1,1));
IF @uni_int = unicode('.') or(48<= @uni_int and @uni_int<=57)
set @i = @i +1;
ELSE
break;
END
return substring(@my_str,1,@i)
end