create or replace TRIGGER positionit
BEFORE INSERT ON position
FOR EACH ROW

when (NEW.DBID IS NULL)
BEGIN
    SELECT SEQ_POSITION_ID.NEXTVAL INTO:NEW.DBID FROM DUAL;
    END;
