Skip to content
Advertisement

ORA-00936: missing expression (sql-oracle)

I want to add 100 dollars to the old money, But tell me ORA-00936: missing expression

Advertisement

Answer

The trigger syntax is not correct.

Try this:

Key points:

  • You can’t update the same table that the trigger is on–this causes a mutating table error. The way to do this is by assigning the value directly, as shown above.
  • You can’t modify the :NEW value in an after trigger. You can do so in a before trigger though.
  • The pseudo record is prefixed with a colon, as :NEW

After adding this trigger, here is the result:

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