Lesson 7 of 8

Automate an audit with triggers

Use OLD, NEW, BEFORE, and AFTER without creating invisible logic.

45 minAdvanced SQL with PostgreSQL

By the end of this lesson

  • Create a trigger function
  • Choose BEFORE or AFTER
  • Avoid recursion

SQL Pro

Continue with the right access

“Automate an audit with triggers” is included from SQL Pro.

30 free days of SQL Pro on registration, subject to the 31 remaining places. No card or automatic renewal.

After signing in, you will return directly to this activity.