declare cnt number;
begin
SELECT COUNT(*) into cnt FROM dba_tab_columns WHERE upper(owner)='ICLAMS_ROFINEDB' AND table_name=UPPER('RF_SURVEY_RELATE_TEMPLATE') AND column_name=UPPER('IN_TRIMMEAN_PARAM');
if cnt=0 then
execute immediate 'ALTER TABLE RF_SURVEY_RELATE_TEMPLATE ADD IN_TRIMMEAN_PARAM number';
end if;
begin
SELECT COUNT(*) into cnt FROM dba_tab_columns WHERE upper(owner)='ICLAMS_ROFINEDB' AND table_name=UPPER('RF_SURVEY_RELATE_TEMPLATE') AND column_name=UPPER('IN_TRIMMEAN_PARAM');
if cnt=0 then
execute immediate 'ALTER TABLE RF_SURVEY_RELATE_TEMPLATE ADD IN_TRIMMEAN_PARAM number';
end if;
end;