JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Success stories
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Getting to Know Triggers

    SQL SELF
    57 level,0 lecture
    In this lecture, you'll find out what triggers are in databases, how they work, why they're used, their pros and cons, and you'll see real-life examples of using triggers for automation, logging, and keeping your data consistent.
    Open
  • Trigger Types in PostgreSQL: BEFORE, AFTER, INSTEAD OF

    SQL SELF
    57 level,1 lecture
    In this lecture, you'll learn about the three main types of triggers in PostgreSQL: BEFORE, AFTER, and INSTEAD OF. We'll break down when and why you use them, how to implement typical scenarios with code examples, and also look at the quirks and limitations of each trigger type.
    Open
  • Trigger Syntax Basics: CREATE TRIGGER, WHEN, EXECUTE FUNCTION

    SQL SELF
    57 level,2 lecture
    In this lecture, you'll learn how to create triggers in PostgreSQL: we'll break down the CREATE TRIGGER syntax, working with WHEN conditions, linking with EXECUTE FUNCTION, and also check out practical examples and common mistakes when working with triggers.
    Open
  • Creating a Simple Trigger for Updating Data: BEFORE INSERT

    SQL SELF
    57 level,3 lecture
    In this lecture, you'll learn how to create a BEFORE INSERT trigger in PostgreSQL to automatically fill the last_modified field when new records are added. We'll break down how to create a function for the trigger, the trigger itself, testing, common mistakes, and practical use cases.
    Open
  • How Triggers Interact with PL/pgSQL Functions: OLD, NEW, TG_OP

    SQL SELF
    57 level,4 lecture
    In this lecture, you'll learn how to use the special variables OLD, NEW, and TG_OP inside trigger functions in PostgreSQL. We'll break down, with hands-on examples, how to track data changes, log operations, and avoid common mistakes when working with triggers.
    Open
Learn
  • Registration
  • Java course
  • Help with tasks
  • Pricing
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success stories
  • Activities
Company
  • About us
  • Contacts
  • Reviews
  • FAQ
  • Support
JavaRushJavaRush — is an interactive online course for learning Java programming from scratch. It contains 1200 practical tasks with one-click solution checking, the necessary minimum of theory on Java basics, and motivating features that help you complete the course: games, quizzes, interesting projects and articles on effective learning and the career of a Java developer.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush
MastercardVisa
"Programmers are not born" © 2026 JavaRush