RefLib

Reference library for AI

Back

postgresql_16:7.1.157.2 Parameters

PostgreSQL 16 > Reference > SQL Commands > PREPARE > Parameters

*name*

An arbitrary name given to this particular prepared statement. It must be unique within a single session and is subsequently used to execute or deallocate a previously prepared statement.

*data_type*

The data type of a parameter to the prepared statement. If the data type of a particular parameter is unspecified or is specified as unknown, it will be inferred from the context in which the parameter is first referenced. To refer to the parameters in the prepared statement itself, use $1, $2, etc.

*statement*

Any SELECT, INSERT, UPDATE, DELETE, MERGE, or VALUES statement.

Back