create or replace TRIGGER loginfoit
BEFORE INSERT ON loginfo
FOR EACH ROW

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