RDB/VMS SQL SHOW — VMS SQLdev_2.0
SHOW ──┬─> show-domains ──────────────┬──>
├─> show-indexes ──────────────┤
├─> show-privileges ───────────┤
├─> show-schema ───────────────┤
├─> show-session-information ──┤
├─> show-storage-areas ────────┤
├─> show-storage-maps ─────────┤
├─> show-tables ───────────────┤
└─> show-views ────────────────┘
Additional information available:
More Informationdomainsindexesprivilegesschemassession information
storage areasstorage mapstablesviews
More Information
The SHOW statement displays information about the schema and its definitions, and information about the current interactive SQL session. You can use the SHOW statement only in interactive SQL.
domains
show-domains = ─┬───────────┬─>
D
O
M
A
I
N
S ─┬─┬──────────────────────┬─┬──> ├─> typebox (S)typebox (Y)typebox (S)typebox (T)typebox (E)typebox (M) ─┤ │ ├─┬─────────────┬─> typebox (*) ─┤ │ └─> typebox (A)typebox (L)typebox (L) ────┘ │ │ └─> auth-id. ─┘ │ │ │ └─> domain-name ───────┘ │ └─────────── , <───────────┘ Displays the names and data types of specified domains. If you specify SHOW DOMAINS without any arguments, VAX SQL displays definitions of all domains in all declared schemas.
indexes
show-indexes = ─┬───────────┬─>
I
N
D
E
X
E
S ─┬──────────────────────────────┬──> ├─> typebox (S)typebox (Y)typebox (S)typebox (T)typebox (E)typebox (M) ─┤ ├─┬─┬─┬─────────────┬─> typebox (*) ─┬─┬─┤ └─> typebox (A)typebox (L)typebox (L) ────┘ │ │ │ └─> auth-id. ─┘ │ │ │ │ │ └─> index-name ────────┘ │ │ │ └─────────── , <───────────┘ │ └─>
O
N ─┬─> table-name ─┬──────┘ └────── , <─────┘ Displays information about specified indexes. SQL displays the name of the index, the associated column and table, and whether the definition allows duplicate values for the column. If you specify SHOW INDEXES without any arguments, SQL displays definitions of all indexes in all declared schemas.
privileges
show-privileges = ──┬─>
P
R
I
V
I
L
E
G
E
S
O
N ─┬┬─> typebox (T)typebox (A)typebox (B)typebox (L)typebox (E)typebox (S) ─┬─> table-name ─┬────────────┬─> └─>
P
R
O
T
E
C
T
I
O
N
O
N ─┘│ └─────── , <─────┘ │ └─>
S
C
H
E
M
A
S typebox (A)typebox (U)typebox (T)typebox (H)typebox (O)typebox (R)typebox (I)typebox (Z)typebox (A)typebox (T)typebox (I)typebox (O)typebox (N) ─┬─> auth-id ─┬─┘ └───── , <───┘ SHOW PRIVILEGES displays only your ACL entry for the specified tables or schemas. SHOW PROTECTION displays all the entries in the ACL for the specified tables or schemas.
schemas
show-schema = ──>
S
C
H
E
M
A
S typebox (A)typebox (U)typebox (T)typebox (H)typebox (O)typebox (R)typebox (I)typebox (Z)typebox (A)typebox (T)typebox (I)typebox (O)typebox (N) ─┬────────────────┬──> └─┬─> auth-id ─┬─┘ └───── , <───┘ Displays information about the specified schemas. For each schema, SQL displays the authorization identifier and the file specification for the database system root file. If the schema was declared using a data dictionary path name, SQL also displays that path name. If you do not specify any authorization identifiers with SHOW SCHEMAS, SQL displays information about all declared schemas.
session information
show-session-information = ─┬─>
D
I
C
T
I
O
N
A
R
Y ───┬─> ├─>
T
R
A
N
S
A
C
T
I
O
N ──┤ ├─>
V
E
R
S
I
O
N
S ─────┤ └─>
S
Q
L
C
A ────────┘ SHOW DICTIONARY displays the current default directory in the data dictionary. SHOW TRANSACTION displays the characteristics of the current transaction, or, if there is not an active transaction, the characteristics specified in the last DECLARE TRANSACTION statement. SHOW VERSIONS displays the version of SQL and underlying software components. SHOW SQLCA displays the contents of the SQL Communication Area (SQLCA). The SQLCA is a collection of variables that SQL uses to provide information about the execution of SQL statements to application programs. In interactive SQL, you can use the SHOW SQLCA statement to learn about the different variables in the SQLCA.
storage areas
show-storage-areas = ──>
S
T
O
R
A
G
E
A
R
E
A
S ─┬─┬──────────────────────┬─┬──> │ ├─┬─────────────┬─> typebox (*) ─┤ │ │ │ └─> auth-id. ─┘ │ │ │ └─> storage-area-name ─┘ │ └─────────── , <───────────┘ Displays information about the storage areas for the declared schema. The information includes: page format, page size, area file, area allocation, area extent minimum, area extent maximum, area extent percent, snapshot file, snapshot allocation, snapshot extent minimum, snapshot extent maximum, and snapshot extent percent.
storage maps
show-storage-maps = ─┬───────────┬─>
S
T
O
R
A
G
E
M
A
P
S ─┬─┬──────────────────────┬─┬──> ├─> typebox (S)typebox (Y)typebox (S)typebox (T)typebox (E)typebox (M) ─┤ │ ├─┬─────────────┬─> typebox (*) ─┤ │ └─> typebox (A)typebox (L)typebox (L) ────┘ │ │ └─> auth-id. ─┘ │ │ │ └─> storage-map-name ──┘ │ └─────────── , <───────────┘ Displays information about the storage maps for the declared schema. The display includes: whether compression is enabled or disabled, and information you specified in the store-clause of the CREATE STORAGE MAP statement.
tables
show-tables = ─┬───────────┬─>
T
A
B
L
E
S ─┬─┬──────────────────────┬─┬──> ├─>
S
Y
S
T
E
M ─┤ │ ├─┬─────────────┬─> typebox (*) ─┤ │ └─>
A
L
L ────┘ │ │ └─> auth-id. ─┘ │ │ │ └─> table-name ────────┘ │ └────────── , <────────────┘ Displays information about tables. If you do not specify a wildcard or list of table names, SQL displays the names of all the tables in all declared schemas.
views
show-views = ──┬───────────┬─>
V
I
E
W
S ─┬─┬──────────────────────┬─┬──> ├─>
S
Y
S
T
E
M ─┤ │ ├─┬─────────────┬─> typebox (*) ─┤ │ └─>
A
L
L ────┘ │ │ └─> auth-id. ─┘ │ │ │ └─> view-name ─────────┘ │ └──────────────────────────┘ Displays information about views. If you do not specify a wildcard or list of view names, SQL displays the names of all the views in all declared schemas.