ABORT

Name

ABORT  --  Aborts the current transaction 現在のトランザクションをアボートする

Synopsis

ABORT [ TRANSACTION | WORK ]
  

入力

None.

なし。

出力

ABORT

<-- Message returned if successful. --> メッセージが成功時に返る。

NOTICE: UserAbortTransactionBlock and not in in-progress state ABORT

If there is not any transaction currently in progress.

もし現在進行中のトランザクションが何もなければ。

説明

ABORT rolls back the current transaction and causes all the updates made by the transaction to be discarded. This command is identical in behavior to the SQL92 command ROLLBACK, and is present only for historical reasons.

ABORT は、現在のトランザクションをロールバック し、そのトランザクションでなされたすべての更新を捨てる要因となります。 このコマンドはSQL92 コマンドの ROLLBACK のふるまいと同じであり、歴史的な 理由で存在しています。

注意

Use COMMIT to successfully terminate a transaction.

トランザクションを成功に終わらせるには、 COMMIT を使いなさい。

使用法

To abort all changes:

すべての変更をアボートする:

ABORT WORK;
   

互換性

SQL92

This command is a Postgres extension present for historical reasons. ROLLBACK is the SQL92 equivalent command.

このコマンドは歴史的な理由で存在する Postgres の拡張です。 ROLLBACKSQL92 の 同等コマンドです。