DEALLOCATE
Synopsis
Use the DEALLOCATE
statement to deallocate a previously prepared SQL statement.
Syntax
deallocate ::= DEALLOCATE [ PREPARE ] { name | ALL }
deallocate
Semantics
name
Specify the name of the prepared statement to deallocate.
ALL
Deallocate all prepared statements.
Examples
Prepare and deallocate an insert statement.
yugabyte=# CREATE TABLE sample(k1 int, k2 int, v1 int, v2 text, PRIMARY KEY (k1, k2));
yugabyte=# PREPARE ins (bigint, double precision, int, text) AS
INSERT INTO sample(k1, k2, v1, v2) VALUES ($1, $2, $3, $4);
yugabyte=# DEALLOCATE ins;
See also
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .