1.2.1573. ext/pgsql¶
Extension PostGreSQL.
PostgreSQL is an open source descendant of this original Berkeley code. It provides SQL92/SQL99 language support, transactions, referential integrity, stored procedures and type extensibility.
<?php
// Connect to a database named 'mary'
$dbconn = pg_connect('dbname=mary');
// Prepare a query for execution
$result = pg_prepare($dbconn, 'my_query', 'SELECT * FROM shops WHERE name = $1');
// Execute the prepared query. Note that it is not necessary to escape
// the string 'Joe's Widgets' in any way
$result = pg_execute($dbconn, 'my_query', array('Joe\'s Widgets'));
// Execute the same prepared query, this time with a different parameter
$result = pg_execute($dbconn, 'my_query', array('Clothes Clothes Clothes'));
?>
See also PostgreSQL and PostgreSQL: The world’s most advanced open source database.
1.2.1573.1. Specs¶
Short name |
Extensions/Extpgsql |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |