pdb_get_columns

Description

Returns a list of columns in tables in the current database at the primary data server.

Syntax

pdb_get_columns [ownername, tablename[, colname]] 

Parameters

ownername

The user name of the owner of the table specified in the tablename option. This option can be delimited with quote characters to specify character case.

tablename

The name of the table in the current database for which information is returned. This option can be delimited with quote characters to specify character case.

colname

The name of the column for which information is returned. This option can be delimited with quote characters to specify character case.

Examples

Example 1

pdb_get_columns

This command returns a list of all of the columns in all of the user tables in the current database.

Example 2

pdb_get_columns bob, authors

This command returns a list of all of the columns in the table authors, owned by the user “bob” in the current database.

Example 3

pdb_get_columns bob, authors, au_fname

This command returns information about the column au_fname in the table authors, owned by the user “bob” in the current database.

Usage

Note(For Oracle and Microsoft SQL Server) Results from these commands are taken from the Replication Agent System database (RASD). (or DB2 UDB) Results from these commands are taken directly from the primary database.

See also

pdb_get_databases, pdb_get_primary_keys, pdb_get_procedure_parms, pdb_get_procedures, pdb_get_tables