db2_primary_keys
Returns a result set listing primary keys for a table
Description
resource db2_primary_keys(
resource $connection,
stringnull $qualifier,
stringnull $schema,
string $table_name
)
Returns a result set listing the primary keys for a table.
Parameters
-
connection
-
A valid connection to an IBM DB2, Cloudscape, or Apache Derby database.
-
qualifier
-
A qualifier for DB2 databases running on OS/390 or z/OS servers. For
other databases, pass
null or an empty string.
-
schema
-
The schema which contains the tables. If
schema
is null, db2_primary_keys matches the schema for
the current connection.
-
table_name
-
The name of the table.
Return Values
Returns a statement resource with a result set containing rows describing
the primary keys for the specified table. The result set is composed of the
following columns:
See Also
- db2_column_privileges
- db2_columns
- db2_foreign_keys
- db2_procedure_columns
- db2_procedures
- db2_special_columns
- db2_statistics
- db2_table_privileges
- db2_tables