Name
ROLLBACK
-- Aborts the current transaction
現在のトランザクションをアボートする。
Synopsis
ROLLBACK [ WORK | TRANSACTION ]
出力
- ABORT
Message returned if successful.
成功時に返されるメッセージ。
- NOTICE: UserAbortTransactionBlock and not in in-progress state
ABORT
If there is not any transaction currently in progress.
現在進行中のトランザクションが何もない場合。
説明
ROLLBACK rolls back the current transaction and causes
all the updates made by the transaction to be discarded.
ROLLBACK は現在のトランザクションをロールバック
し、そのトランザクションでおこなわれた全ての更新を廃棄させます。
注意
The keywords WORK and TRANSACTION are noise and can be omitted.
WORK と TRANSACTION というキーワードは余分な物であり、省略可能
です。
Use COMMIT
to successfully terminate a transaction.
トランザクションを正常終了させるには、
COMMIT を使っ
て下さい。
使用法
To abort all changes:
全ての変更をアボートする。
ROLLBACK WORK;
互換性
SQL92
Full compatibility. The TRANSACTION keyword is a
Postgres extension.
完全互換です。TRANSACTION キーワードは
Postgres における拡張です。