Lines Matching refs:dbh
14 $dbh = pg_connect($conn_str);
16 pg_query($dbh, "CREATE TABLE $tbl_name (null_field INT, not_null_field INT NOT NULL)");
18 pg_insert($dbh, $tbl_name, array('null_field' => null, 'not_null_field' => 1));
19 pg_insert($dbh, $tbl_name, array('null_field' => null, 'not_null_field' => 2));
21 var_dump(pg_fetch_all(pg_query($dbh, 'SELECT * FROM '. $tbl_name)));
23 $query = pg_delete($dbh, $tbl_name, array('null_field' => NULL,'not_null_field' => 2), PGSQL_DML_ST…
27 $query = pg_update($dbh, $tbl_name, array('null_field' => NULL, 'not_null_field' => 0), array('not_…
31 var_dump(pg_fetch_all(pg_query($dbh, 'SELECT * FROM '. $tbl_name)));
33 pg_close($dbh);
41 $dbh = pg_connect($conn_str);
44 pg_query($dbh, "DROP TABLE IF EXISTS $tbl_name");