
/*------ ATD 361482 ------*/
DECLARE v_count NUMBER:=0;

BEGIN

SELECT Count(1) INTO v_count FROM USER_TAB_COLUMNS WHERE UPPER(table_name) = 'COMPLEMENTONFSAIDA' and UPPER(column_name) = 'RUSUARIOCRIACAO';

IF v_count = 0 THEN

EXECUTE IMMEDIATE 'ALTER TABLE COMPLEMENTONFSAIDA ADD RUSUARIOCRIACAO NUMBER(10) NULL';

END IF;

END;
