CodeGym
AI Academy
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • Nested Transactions: SAVEPOINT, ROLLBACK TO SAVEPOINT

    SQL SELF
    Level 53, Lesson 0
    In this lecture, you'll learn how to pull off "nested transactions" in PostgreSQL using savepoints (SAVEPOINT), how to partially roll back changes inside a single transaction, and you'll get some hands-on tips for using SAVEPOINT, ROLLBACK TO SAVEPOINT, and RELEASE SAVEPOINT to flexibly handle errors and stages in tricky database scenarios.
    Available
  • Calling Procedures and Functions Inside Transactions

    SQL SELF
    Level 53, Lesson 1
    In this lecture, you'll learn how functions and procedures work in PostgreSQL 17 in the context of transactions: what makes them different, how to manage transactions inside procedures, how to do partial rollbacks, and what limitations exist with nested calls. There are practical examples and answers to common questions.
    Available
  • Building Multi-Step Procedures: Data Validation, Insert, and Logging

    SQL SELF
    Level 53, Lesson 2
    In this lecture, you'll learn how to build multi-step procedures in PostgreSQL: validate data, perform inserts, and log actions all within a single transaction. We'll break down the difference between functions and procedures, how to handle errors, use savepoints, and best practices for multi-step business logic.
    Available
  • Error Handling and Rolling Back to Original State: EXCEPTION, RAISE

    SQL SELF
    Level 53, Lesson 3
    In this lecture, you'll learn how to use EXCEPTION and RAISE blocks in PostgreSQL to handle errors, partially roll back changes, and log errors in PL/pgSQL functions and procedures. We'll break down the syntax, limitations, real-life examples, and best practices for making your business operations more robust.
    Available
  • Nested Procedure Calls with EXECUTE: Dynamic SQL Execution

    SQL SELF
    Level 53, Lesson 4
    In this lecture, you'll learn how to use dynamic SQL in PL/pgSQL with the EXECUTE command: how to create and modify tables with dynamic names, build universal procedures, and protect yourself from SQL injection. Real-life examples and security tips will help you automate complex tasks in PostgreSQL.
    Available
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym