|
赫赫,可以了,我建了个函数CREATE OR REPLACE
FUNCTION FUNCTION1(par_unit_cost sales_contract_item.sci_unit_cost%TYPE) RETURN VARCHAR2 AS
BEGIN
IF((length(par_unit_cost)-INSTR (to_char(par_unit_cost),'.'))=3)then
return (to_char(par_unit_cost,'990.999'));
ELSE
return (to_char(par_unit_cost,'990.99'));
END IF;
END FUNCTION1;调用这个函数,report builder里不能直接来的! |
|