
/*------ ATD 361635 ------*/
-- Tabela BASECALFAT coluna cBenef
DECLARE v_count NUMBER(1) := 0; 
BEGIN 
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE Upper(table_name) = 'BASECALFAT' AND Upper(column_name) = 'cBENEF'; 
EXCEPTION 
WHEN NO_DATA_FOUND THEN 
EXECUTE IMMEDIATE 'ALTER TABLE BASECALFAT ADD cBENEF CHAR(10) '; 
END;
/

-- Tabela ITNFSAICOMPLEMENTO coluna cBenef
DECLARE v_count NUMBER(1) := 0; 
BEGIN 
SELECT 1 INTO v_count FROM USER_TAB_COLUMNS WHERE Upper(table_name) = 'ITNFSAICOMPLEMENTO' AND Upper(column_name) = 'cBENEF'; 
EXCEPTION 
WHEN NO_DATA_FOUND THEN 
EXECUTE IMMEDIATE 'ALTER TABLE ITNFSAICOMPLEMENTO ADD cBENEF CHAR(10) '; 
END;
/