ALTER FUNCTION ToDecimal2(@cnvNumber decimal(23,10)) RETURNS decimal(23,2) --返回返回值的数据类型 as BEGIN RETURN ISNULL(@cnvNumber, 0) END