Updated on 2025-07-22 GMT+08:00

DEALLOCATE

Description

DEALLOCATE deallocates a previously prepared statement. If you do not explicitly deallocate a prepared statement, it is deallocated when the session ends.

The PREPARE keyword is always ignored.

Precautions

None

Syntax

DEALLOCATE [ PREPARE ] { name | ALL };

Parameters

  • name

    Specifies the name of the prepared statement to be deallocated.

  • ALL

    Deallocates all prepared statements.

Examples

None