PHP » GoLang |
login |
register |
about
|
GoLang pg_query_params
request it (444)
GoLang replacement for PHP's pg_query_params
[edit | history]
pg_query_params(PHP 5 >= 5.1.0, PHP 7) pg_query_params — Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text Description
resource pg_query_params
([ resource
$connection
], string $query
, array $params
)Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text. pg_query_params() is like pg_query(), but offers additional functionality: parameter values can be specified separately from the command string proper. pg_query_params() is supported only against PostgreSQL 7.4 or higher connections; it will fail when using earlier versions.
If parameters are used, they are referred to in the
The primary advantage of pg_query_params() over pg_query()
is that parameter values
may be separated from the Parameters
Return Values
A query result resource on success or Examples
Example #1 Using pg_query_params()
<?php |
more
Recently updated
more
Most requested
more
Last requests
|