Line command
Object list line commands shows the line commands
you can use with each type of object.
| Command | Description | Database | Table space | Table/View | Index | Column | Synonym | Plan | Package | Collection | DBRM | Schema | Distinct Type | Function | Procedure | Trigger | Storage Group | Sequence |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| A | Alter an object. | Y | Y | Y | Y | Y | Y | |||||||||||
| ADD | Add table check constraint. | Y1 | ||||||||||||||||
| ALS | Show aliases of an object. | Y | ||||||||||||||||
| AT | Show auxiliary tables for LOB columns. | Y | Y | |||||||||||||||
| B | Browse the object. | Y | Y2 | Y | ||||||||||||||
| BI | Bind the object. | Y | Y | |||||||||||||||
| BT | Show base table for auxiliary table. | Y | ||||||||||||||||
| C | Copy table. | Y | Y2 | |||||||||||||||
| CBI | Copy and bind the object. | Y | ||||||||||||||||
| CDI | Show column distribution statistics (as generated by RUNSTATS). | Y | ||||||||||||||||
| CH | Show child (dependent) tables. | Y | ||||||||||||||||
| CHR | Show child relationships (referential constraints). | Y | ||||||||||||||||
| CK | Show information about table check constraints. | Y | ||||||||||||||||
| COL | Show the columns for the object. | Y | Y | Y3 | ||||||||||||||
| COM | Comment on an object. | Y | Y | Y | Y | Y | Y | |||||||||||
| CR | Create an object like this object. | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | ||||||
| CRA | Create an alias for an object. | Y | Y | |||||||||||||||
| CRS | Create a table space in the database. | Y | ||||||||||||||||
| CRT | Create a table in the table space. | Y | ||||||||||||||||
| CRX | Create an index. | Y | ||||||||||||||||
| CS | Describe the columns for an object (abbreviation of information provided by COL command). | Y | ||||||||||||||||
| D | Show the database for an object. | Y3 | Y | Y | Y | Y | ||||||||||||
| DEP | Show the dependencies on an object. | Y1 | Y | Y | Y | |||||||||||||
| DI | Display distribution statistics of a column. | Y | ||||||||||||||||
| DR | Drop the object/constraint. | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | ||||||
| DS | Display the database structure. | Y | Y | |||||||||||||||
| DT | Show the source data type (columns) or distinct types (schemas). | Y | Y | |||||||||||||||
| E | Edit the object. | Y | Y2 | |||||||||||||||
| EDC | Show enabled/disabled connections. | Y | Y | |||||||||||||||
| F | Show functions. | Y | ||||||||||||||||
| FC | Show the foreign key From Column. | Y4 | ||||||||||||||||
| FK | Show information about the referential integrity defined for foreign keys. | Y | ||||||||||||||||
| FRE | Free the object. | Y | Y | |||||||||||||||
| G | Grant privileges for the object. | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | |||||
| GEN | Generate SQL for object from Db2® catalog. | Y | Y | Y | Y | Y | Y | Y | Y | |||||||||
| H | Show the homonyms (like-named objects) for the object. | Y | ||||||||||||||||
| I | Show detailed information about the object. | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | ||||
| ICS | Show the status of image copies for the object. | Y | Y | Y | ||||||||||||||
| L | Show the collection for the object or, for tables, show the rows of this table. | Y3 | ||||||||||||||||
| LAB | Label the object. | Y | Y | |||||||||||||||
| LC | Show LISTCAT information for the data set. | Y5 | Y5 | |||||||||||||||
| LPT | List the PLAN_TABLE table for the object. | Y | Y | |||||||||||||||
| M | Show the DBRMs for the object. | Y | ||||||||||||||||
| O | Show related stored procedures. | Y | ||||||||||||||||
| P | Display information about the privileges for this object. | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | |||||
| PA | Show parent tables. | Y | ||||||||||||||||
| PAR | Show parent relations (referential constraints). | Y | ||||||||||||||||
| PARM | Show the routine parameters. | Y | Y | |||||||||||||||
| PC | Show the column privileges for this object. | Y3 | ||||||||||||||||
| PK | Show the primary key for this table. | Y | ||||||||||||||||
| PKG | Show the packages for the object. | Y | Y | Y | Y3 | Y | Y | Y | Y | |||||||||
| PKL | Show the package lists for the object. | Y | Y | Y | ||||||||||||||
| PL | Show the plans for the object. | Y | Y | Y3 | Y | Y | Y | |||||||||||
| PR | Print table. | Y | Y2 | |||||||||||||||
| PS | Display information about the privileges for the schema for this object. | Y | Y | Y | Y | |||||||||||||
| PST | Show partition statistics. | Y | Y | |||||||||||||||
| PT | Show the parts of the object. | Y | Y | Y | ||||||||||||||
| R | Revoke the privilege for this object.3 | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | |||||||
| RBI | Rebind the object. | Y | Y | |||||||||||||||
| RDT | Return data type. | Y | ||||||||||||||||
ROW (or /) |
Show all the columns in this row of the result table. | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
| RT | Recover TOCOPY. | Y5 | Y5 | |||||||||||||||
| S | Show the table spaces for the object. | Y | Y3 | Y | Y | Y | Y | |||||||||||
| SCH | Show the schema the object. | Y3 | Y | Y | Y3 | Y | ||||||||||||
| SEL | Build SQL SELECT statement for this object. | Y | Y2 | |||||||||||||||
| SEQ | Show identity column information. | Y | ||||||||||||||||
| SQL | Show the SQL statements in the object. | Y | Y | Y | Y | Y | ||||||||||||
| SYN | Show the synonyms for the object. | Y | Y | Y | ||||||||||||||
| T | Show the tables for the object. | Y | Y | Y6 | Y | Y | Y | Y | Y | Y | Y | |||||||
| TC | Show the foreign key To Column. | Y4 | ||||||||||||||||
| TR | Show triggers. | Y | Y | |||||||||||||||
| UTL | Run a Db2® utility job against the object. | Y | Y | Y | Y2 | |||||||||||||
| V | View the object. | Y | Y2 | |||||||||||||||
| VER | Show the versions of the object. | Y | ||||||||||||||||
| VOL | Show volumes. | Y | Y | |||||||||||||||
| VS | Show how the view was created. | Y7 | ||||||||||||||||
| VW | Show views. | Y | Y | |||||||||||||||
| X | Show the indexes for the object. | Y | Y | Y | Y | Y | Y | |||||||||||
| XC | Show the indexes and index columns for the object. | Y | ||||||||||||||||
| XPT | Show index parts. | Y | Y |
Related tasks
1 Only available from a list of table constraints.
2 The synonym name is copied to the function panel if the location is unspecified
and the owner is the SQLID; otherwise, the synonym name is resolved and the resolved name is copied.
3 Only available from a list of object privileges.
4 Only available from a list of foreign keys.
5 Only available from a list of image copies.
6 Only available when the object is a view or an alias, or from a list of object
privileges.
7 Only available when the object is a view.