describe Command
Use the describe
command to display information on
individual database objects. Displays parameters for prepared SQL statements and built-in
procedures.
The argument to the describe
command can be the name of a
table, cache group, view, materialized view, sequence, synonym, a built-in procedure, a
SQL statement or a command ID for a previously prepared SQL statement, a PL/SQL
function, PL/SQL procedure or PL/SQL package.
The
describe
command requires a semicolon character to terminate the
command.Command> CREATE TABLE t1 (KEY NUMBER NOT NULL PRIMARY KEY, VALUE CHAR (64));
Command> describe t1;
Table USER.T1:
Columns:
*KEY NUMBER NOT NULL
VALUE CHAR (64)
1 table found.
(primary key columns are indicated with *)
Command> describe SELECT * FROM T1 WHERE KEY=?;
Prepared Statement:
Parameters:
Parameter 1 NUMBER
Columns:
KEY NUMBER NOT NULL
VALUE CHAR (64)
Command> describe ttOptUseIndex;
Procedure TTOPTUSEINDEX:
Parameters:
Parameter INDOPTION VARCHAR (1024)
Columns:
(none)
1 procedure found.
Command>