|previous : next|
RELEASE SAVEPOINT statement
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
Most dialects support the SAVEPOINT statement. Instead of committing savepoints (which act as nested transactions, a
SAVEPOINT can be released using the
RELEASE SAVEPOINT statement, when it is no longer needed.
This example using jOOQ:
Translates to the following dialect specific expressions:
-- AURORA_POSTGRES, BIGQUERY, COCKROACHDB, DB2, FIREBIRD, H2, HANA, HSQLDB, INFORMIX, MARIADB, MEMSQL, MYSQL, ORACLE, -- POSTGRES, SQLITE, YUGABYTEDB RELEASE SAVEPOINT s -- SQLDATAWAREHOUSE, SQLSERVER BEGIN IF 1 = 0 SELECT 1; END; -- ACCESS, ASE, AURORA_MYSQL, DERBY, EXASOL, REDSHIFT, SNOWFLAKE, SYBASE, TERADATA, TRINO, VERTICA /* UNSUPPORTED */
(These are currently generated with jOOQ 3.19, see #10141), or translate your own on our website
Do you have any feedback about this page? We'd love to hear it!