Vai al contenuto

# RISORSE_TRG

## Informazioni

- Tabella: RISORSE
- Evento: INSERT
- Tipo: BEFORE EACH ROW
- Stato: ENABLED

## Codice Sorgente

    TRIGGER "APOLLINARECATERINGPROD"."RISORSE_TRG"
    BEFORE INSERT ON RISORSE
    FOR EACH ROW
    BEGIN
      <<COLUMN_SEQUENCES>>
      BEGIN
        IF INSERTING AND :NEW.ID IS NULL THEN
          SELECT RISORSE_SEQ.NEXTVAL INTO :NEW.ID FROM SYS.DUAL;
        END IF;
      END COLUMN_SEQUENCES;
    END;