From b929019816db6bc783ec7b4b53a2c5abec44854e Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Thu, 24 Sep 2020 21:41:16 +0000 Subject: [PATCH] Update and improve odbc_foreignkeys() docs git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350626 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../uodbc/functions/odbc-foreignkeys.xml | 70 ++++++++++++------- .../uodbc/functions/odbc-primarykeys.xml | 1 + 2 files changed, 46 insertions(+), 25 deletions(-) diff --git a/reference/uodbc/functions/odbc-foreignkeys.xml b/reference/uodbc/functions/odbc-foreignkeys.xml index 36729bf0bd..9eeabb1cd9 100644 --- a/reference/uodbc/functions/odbc-foreignkeys.xml +++ b/reference/uodbc/functions/odbc-foreignkeys.xml @@ -11,11 +11,11 @@ resourceodbc_foreignkeys resourceconnection_id - stringpk_qualifier - stringpk_owner + stringpk_catalog + stringpk_schema stringpk_table - stringfk_qualifier - stringfk_owner + stringfk_catalog + stringfk_schema stringfk_table @@ -36,18 +36,18 @@ - pk_qualifier + pk_catalog - The primary key qualifier. + The catalog ('qualifier' in ODBC 2 parlance) of the primary key table. - pk_owner + pk_schema - The primary key owner. + The schema ('owner' in ODBC 2 parlance) of the primary key table. @@ -60,18 +60,18 @@ - fk_qualifier + pk_catalog - The foreign key qualifier. + The catalog ('qualifier' in ODBC 2 parlance) of the foreign key table. - fk_owner + fk_schema - The foreign key owner. + The schema ('owner' in ODBC 2 parlance) of the foreign key table. @@ -95,21 +95,31 @@ The result set has the following columns: - PKTABLE_QUALIFIER - PKTABLE_OWNER - PKTABLE_NAME - PKCOLUMN_NAME - FKTABLE_QUALIFIER - FKTABLE_OWNER - FKTABLE_NAME - FKCOLUMN_NAME - KEY_SEQ - UPDATE_RULE - DELETE_RULE - FK_NAME - PK_NAME + PKTABLE_CAT + PKTABLE_SCHEM + PKTABLE_NAME + PKCOLUMN_NAME + FKTABLE_CAT + FKTABLE_SCHEM + FKTABLE_NAME + FKCOLUMN_NAME + KEY_SEQ + UPDATE_RULE + DELETE_RULE + FK_NAME + PK_NAME + DEFERRABILITY + &odbc.result.driver-specific; + + If the foreign keys associated with a primary key are requested, the result set + is ordered by FKTABLE_CAT, FKTABLE_SCHEM, + FKTABLE_NAME and KEY_SEQ. + If the primary keys associated with a foreign key are requested, the result set + is ordered by PKTABLE_CAT, PKTABLE_SCHEM, + PKTABLE_NAME and KEY_SEQ. + If pk_table contains a table name, odbc_foreignkeys returns a result set @@ -132,6 +142,16 @@ + + &reftitle.seealso; + + + odbc_tables + odbc_primarykeys + + + +