From 9b3e20babef2544d1acb137bee349af81e076c8d Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sun, 7 May 2006 01:12:30 +0000 Subject: [PATCH] Initial commit git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@212562 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pgsql/functions/pg-field-table.xml | 139 +++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 reference/pgsql/functions/pg-field-table.xml diff --git a/reference/pgsql/functions/pg-field-table.xml b/reference/pgsql/functions/pg-field-table.xml new file mode 100644 index 0000000000..8cf67fa65b --- /dev/null +++ b/reference/pgsql/functions/pg-field-table.xml @@ -0,0 +1,139 @@ + + + + + pg_field_table + Returns the name or oid of the tables field + + + + &reftitle.description; + + intpg_field_table + resourceresult + intfield_number + booloid_only + + + pg_field_table returns the name of the table that field + belongs to, or the table's oid if oid_only is &true;. + + + + + &reftitle.parameters; + + + + result + + + PostgreSQL query result resource, returned by pg_query, + pg_query_params or pg_execute + (among others). + + + + + field_number + + + Field number, starting from 0. + + + + + oid_only + + + By default the tables name that field belongs to is returned but + if oid_only is set to &true;, then the + oid will instead be returned. + + + + + + + + + &reftitle.returnvalues; + + On success either the fields table name or oid. Or, &false; on failure. + + + + + &reftitle.examples; + + + Getting table information about a field + + +]]> + + &example.outputs.similar; + + + + + + + + + &reftitle.notes; + + + Returning the oid is much faster than returning the table name because + fetching the table name requires a query to the database system table. + + + + + + &reftitle.seealso; + + + pg_field_name + pg_field_type + + + + + +