這個存儲過程不與十進制格式00.00存儲過程返回0.00十進制
ALTER PROCEDURE taxable_varsalary
@emp_code bigint,
@co_id bigint
AS
declare @t_varsalary decimal(8,2)
set @t_varsalary = (select sum(tran_value) from emp_ded_ben_trans where [email protected]_code and [email protected]_id and period_flg=2 and tax_flg=0)
RETURN @t_varsalary
回報只適用於int值秒。 – 2017-08-22 10:37:52