消息 8115,级别 16,状态 8,过程 OPEN_RETURN_COUNT,第 46 行
将 numeric 转换为数据类型 numeric 时出现算术溢出错误。
以上错误一般都是什么原因造成的?报错地方应在在这:ALTER PROCEDURE [dbo].[OPEN_RETURN_COUNT]
@CFPID VARCHAR(10),
@SDATE DATETIME,
@EDATE DATETIME,
@GROWTH DECIMAL(10,8) output,
@GROWTH2 DECIMAL(10,8) output,
@SNT DECIMAL(14, 8) output,
@ENT DECIMAL(14, 8) output
AS
Begin
declare @startNetvalue decimal(14,8);
declare @endNetvalue decimal(14,8);
declare @endCount decimal(14,8);
declare @shareCount decimal(14,8);
declare @changeEndCount decimal(14,8);
DECLARE @retCode int;
declare @grth DECIMAL(14,8);
declare @grth2 DECIMAL(14,8); set @shareCount = 0.0
set @changeEndCount = 0.0
SET @retCode = -1
@GROWTH2 DECIMAL(10,8) output,
输出长度不对了?????
将 numeric 转换为数据类型 numeric 时发生算术溢出错误。
这个类型 很不明白 。。
--try @GROWTH DECIMAL(10,8) output, --DECIMAL(14,8)
@GROWTH2 DECIMAL(10,8) output, --DECIMAL(14,8)