pg_prepare()
pg_prepare - Submits a request to create a prepared statement with the given parameters, and waits for completion.
Syntax
resource pg_prepare ()
Arguments
-
Description
pg_prepare() creates a prepared statement for later execution with pg_execute() or pg_send_execute(). This feature allows commands that will be used repeatedly to be parsed and planned just once, rather than each time they are executed. pg_prepare() is supported only against PostgreSQL 7.4 or higher connections; it will fail when using earlier versions.
Version
PHP 5.1.0
Return value
A query result resource on success or FALSE on failure.