4.3. Query Execution Commands

Table of Contents
pg_exec -- send a command to the server
pg_execute -- send a command to the server and optionally loop over the results
pg_select -- loop over the result of a query
pg_exec_prepared -- Execute a pre-prepared SQL statement on the server
pg_result -- get information about a command result
pg_escape_string -- Escape a string for use in an SQL string constant

The commands in this section are used to send SQL commands (queries) to the database server, and fetch results from the database server.