Skip to content
Advertisement

SP2-0552: Bind Variable “NEW” is not declared

I am trying to learn pl/sql triggers. I am trying to create a simple trigger by tracking tutorial http://www.tutorialspoint.com/plsql/plsql_triggers.htm but I got below error. I searched on the internet but could not find the solution. Could you help me on this issue?

Edit: I am using Sql Developer Version 4.1.1

enter image description here

Advertisement

Answer

Works for me (example from your link, but it’s basically the same as your post):

In your example it shows

which doesn’t look like SQL*Plus output. What tool did you use?

After that it gives a SQL*Plus SP2-0552 error about an undefined bind variable, followed by

What procedure was that? I suspect this is the output from a script with some other step that is failing after the trigger is created.

Is the trigger valid? You can normally right-click and check properties in desktop tools, or at the SQL*Plus prompt enter

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement