gespeicherte Prozedur zurückgeben .00 dezimal

diese gespeicherte Prozedur keine return-Gehalt mit dezimal-format 00.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 emp_code=@emp_code and co_id=@co_id and period_flg=2 and tax_flg=0)

RETURN @t_varsalary 
  • return funktioniert nur mit int-Werten.
InformationsquelleAutor shmandor | 2010-08-04
Schreibe einen Kommentar