oracle - EXECUTE IMMEDIATE PL/SQL? -


create or replace trigger p88 after insert on reparation     each row     declare vope number;     begin       select observation_reparation vope repartion;       if(vope null)then    execute immediate 'alter table ' || reparation.observations_reparation || ' modify libelle_piece nvarchar2(50)';     end if; end; / 

i this:

error:table or view not exist.

create or replace trigger p88 after insert on reparation each row declare vope number;  begin    select observation_reparation vope repartion;    if(vope null)then      execute immediate 'alter table reparation rename column observations_reparation libelle_piece';    end if; end; 

if need change declaration of column need alter statement

alter table reparation modify (libelle_piece nvarchar2(50)) 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -