# TB_TIPI_PASTO_TRG

## Informazioni

- **Tabella**: TB_TIPI_PASTO
- **Evento**: INSERT
- **Tipo**: BEFORE EACH ROW
- **Stato**: ENABLED

## Codice Sorgente

```sql
TRIGGER TB_TIPI_PASTO_TRG 
BEFORE INSERT ON TB_TIPI_PASTO 
FOR EACH ROW 
BEGIN
    IF INSERTING AND :NEW.ID IS NULL THEN
      SELECT TB_TIPI_PASTO_SEQ.NEXTVAL INTO :NEW.ID FROM SYS.DUAL;
    END IF;
END;
```
