postgresql_16:5.3.14.5.1 Description
PostgreSQL 16 > Client Interfaces > ECPG — Embedded SQL in C > Embedded SQL Commands > DECLARE STATEMENT > Description
DECLARE STATEMENT declares an SQL statement identifier. SQL statement identifier can be associated with the connection. When the identifier is used by dynamic SQL statements, the statements are executed using the associated connection. The namespace of the declaration is the precompile unit, and multiple declarations to the same SQL statement identifier are not allowed. Note that if the precompiler runs in Informix compatibility mode and some SQL statement is declared, "database" can not be used as a cursor name.