CLOSE

Name

CLOSE  --  Close a cursor

Synopsis

CLOSE cursor
  

入力

カーソル

The name of an open cursor to close.

閉じられる開いているカーソルの名前。

出力

CLOSE

Message returned if the cursor is successfully closed.

カーソルが正常に閉じられたときに返されるメッセージ。

NOTICE PerformPortalClose: portal "cursor" not found

This warning is given if cursor is not declared or has already been closed.

カーソル が 宣言されていないか、または既に閉じられている場合の警告。

説明

CLOSE frees the resources associated with an open cursor. After the cursor is closed, no subsequent operations are allowed on it. A cursor should be closed when it is no longer needed.

CLOSE は開いているカーソルに付随した リソースを開放します。カーソルが閉じられた後は、引き続いて カーソルに対する操作は出来ません。必要無くなったら、 カーソルを閉じなければなりません。

An implicit close is executed for every open cursor when a transaction is terminated by COMMIT or ROLLBACK.

トランザクションが COMMIT または ROLLBACK で終了したとき、それぞれの 開いているカーソルは暗黙的に閉ざされます。

注意事項

Postgres does not have an explicit OPEN cursor statement; a cursor is considered open when it is declared. Use the DECLARE statement to declare a cursor.

Postgres には明示的な OPEN カーソル文がありません。 カーソルは宣言された時点で開かれたと解釈されます。 カーソルを宣言するには DECLARE 文 を使います。

使用法

Close the cursor liahona:

カーソル liahona を閉じます。

CLOSE liahona;
  

互換性

SQL92

CLOSE is fully compatible with SQL92.

CLOSE は SQL92 と完全に互換性があります。