
/*------ ATD 386477 ------*/
-- ORACLE
DECLARE v_count NUMBER(1) := 0;
BEGIN
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE table_name = 'ITNFSAICOMPLEMENTO' AND column_name = 'DESCONTOOFERTA';
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXECUTE IMMEDIATE 'ALTER TABLE ITNFSAICOMPLEMENTO ADD DESCONTOOFERTA  NUMERIC (15,2)';
END;

DECLARE v_count NUMBER(1) := 0;
BEGIN
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE table_name = 'ITNFENTCOMPLEMENTO' AND column_name = 'DESCONTOOFERTA';
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXECUTE IMMEDIATE 'ALTER TABLE ITNFENTCOMPLEMENTO ADD DESCONTOOFERTA  NUMERIC (15,2)';
END;