pas de replace pour un index

Version imprimable

  • 29/08/2007, 14h30
    laurentschneider
    moi je fais encore facilement
    Code:

    1
    2
    3
    4
     
    begin execute immediate 'drop index i'; exception when others then null; end;
    /
    create index i on t(x);

    dans mes scripts ddl
  • 29/08/2007, 16h08
    jadey
    Citation:

    begin execute immediate 'drop index i'; exception when others then null; end;
    /
    create index i on t(x);
    oui mais s'il y'a plusieurs "drop..."
  • 29/08/2007, 16h18
    laurentschneider
    ?
    Code:

    1
    2
    3
    4
    5
    6
    7
     
    begin execute immediate 'drop index i1'; exception when others then null; end;
    /
    create index i1;
    begin execute immediate 'drop index i2'; exception when others then null; end;
    /
    create index i2;