Error on ORACLE trigger -


I have this sexy trigger, which takes value from field referent, parse it, finds a row in some view And fills the need to insert some data in the original line. I also rewrite the referenced field and terminate the additional data.

The legendary field looks like this: "-XXX-123", where is the key of 123 that I search for data in the scene. Hope this makes sense.

  Before triggering on triggered UTX, when each line is new in the new form, in the new form, to start or repeat Trigger TRI (new. STEVILKA_NAROCILA tap) DECLARE PARSED_STNAROC VARCHAR ( 255); PARSED_PRIMARY_VALUE VARCHAR (255); BEGIN PARSED_STNAROC: = SUBSTR (NEW.REFERENT, INSTR (new .REFERENT, '-', -1, 1) + 1); PARSED_PRIMARY_VALUE: = SUBSTR (NEW.REFERENT, 1, INSTR (new .REFERENT, '-', -1, 1) - 1); Select specific v.STNAROCILA, v.STNAROCILA, v.SIFKUPCA, v.STPONUDBE, PARSED_PRIMARY_VALUE: NEW.STEVILKA_NAROCILA,: NEW.DATUM_NAROCILA ,: NEW.SIFRA_KUPCA,: NEW.STEVILKA_PONUDBE,: NEW.REFERENT to ARH_NAROC v where v . STNAROCILA = PARSED_STNAROC; End;   

I get the following error when compiling:

  On-line: 6 trigger easy. TR_UPDATE PLS-00201: The identifier must be 'NEW.REFERENT'   

A colon character is remembered before NEW.REFERENT

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -