Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

More Information

collating sequences

domains

indexes

protection

schemas

session information

storage areas

storage maps

tables

triggers

users granting

users with

views

COLUMNS

COMMENT

CONSTRAINTS

INDEXES

STORAGE_MAPS

TRIGGERS

TO

FROM

COLUMNS

COMMENT

SOURCE

RDB/VMS SQL SHOW — VMS RDB_4.0

 SHOW  ──┬─> show-collating-sequence ───┬──>
         ├─> show-domains ──────────────┤
         ├─> show-indexes ──────────────┤
         ├─> show-protection ───────────┤
         ├─> show-schema ───────────────┤
         ├─> show-session-information ──┤
         ├─> show-storage-areas ────────┤
         ├─> show-storage-maps ─────────┤
         ├─> show-tables ───────────────┤
         ├─> show-triggers ─────────────┤
         ├─> show-users-granting────────┤
         ├─> show-users-with ───────────┤
         └─> show-views ────────────────┘

Additional information available:

More Informationcollating sequencesdomainsindexesprotection
schemassession informationstorage areasstorage mapstablestriggers
users grantingusers withviews

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.

collating sequences

 show-collating-sequence =

 ───> 
C

O

L

L

A

T

I

N

G

S

E

Q

U

E

N

C

E
──┬─────────────────┬─> └─ sequence-name ─┘ A collating sequence is the sequence in which characters are ordered for sorting, merging, and comparing. The VMS National Character Set (NCS) provides a set of predefined collating sequences and lets you define collating sequences of your own.

domains

 show-domains =
 ─┬───────────┬─> 
D

O

M

A

I

N

S
─┬─┬──────────────────────┬─┬──> ├─> 
S

Y

S

T

E

M
─┤ │ ├─┬─────────────┬─> typebox (*) ─┤ │ └─> 
A

L

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
─┬──────────────────────────────┬──> ├─> 
S

Y

S

T

E

M
─┤ ├─┬─┬─┬─────────────┬─> typebox (*) ─┬─┬─┤ └─> 
A

L

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.

protection

 show-protection =
 ──┬─> 
P

R

O

T

E

C

T

I

O

N

O

N
─┬┬─> typebox (T)typebox (A)typebox (B)typebox (L)typebox (E)typebox (S) ─┬─> table-name ─┬─┬──────────┬─> │ ││ └─────── , <─────┘ │ │ └─> 
P

R

I

V

I

L

E

G

E

S

O

N
─┘├─> 
V

I

E

W

S
──┬─> view-name ──┬─┤ │ │ └─────── , <─────┘ │ │ ├─> 
C

O

L

U

M

N
┬─> column-name ─┬─┘ │ │ └─────── , <─────┘ │ └─> 
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 PROTECTION displays all the entries in the access privilege set for the specified schemas, tables, or columns. SHOW PRIVILEGES displays only your access privilege set entry for the specified schemas, tables, or columns. In an ANSI style database, the SHOW USERS GRANTING and SHOW USERS WITH statements display which privileges have the option of being granted to other users and which privileges are without the grant option.

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 =

 ─┬─> 
C

U

R

R

E

N

C

Y
typebox (S)typebox (I)typebox (G)typebox (N) ─────┬─> ├─> 
C

O

N

S

T

R

A

I

N

T
typebox (M)typebox (O)typebox (D)typebox (E) ───┤ ├─> 
D

A

T

E

F

O

R

M

A

T
───────┤ ├─> 
D

I

C

T

I

O

N

A

R

Y
────────┤ ├─> 
D

I

G

I

T

S

E

P

A

R

A

T

O

R
───┤ ├─> 
L

A

N

G

U

A

G

E
──────────┤ ├─> 
R

A

D

I

X
typebox (P)typebox (O)typebox (I)typebox (N)typebox (T) ───────┤ ├─> 
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 CONSTRAINT MODE shows the initial setting of the constraint mode for any transactions starting after the current transaction. When the constraint mode is ON, SQL evaluates all commit-time constraints at the end of each statement and at commit time, until the transaction completes or the constraint mode set to OFF. When the constraint mode is OFF (the default setting), constraint evaluation is deferred until commit time. SHOW CURRENCY SIGN displays the currency indicator which will be used in output displays. SHOW DATE FORMAT displays the values for the date-number and time-number arguments of the SET DATE FORMAT DATE date-number and SET DATE FORMAT TIME time-number statements. SHOW DICTIONARY displays the current default directory in the data dictionary. SHOW DIGIT SEPARATOR displays the character which will be used as the digit separator in output displays. SHOW LANGUAGE displays the language that will be used for month abbreviations in date and time input and display. SHOW RADIX POINT displays the character that will be used as the radix point in output displays. 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
─┬─┬───────────>──────────┬─┬──> ├─> 
S

Y

S

T

E

M
─┤ │ ├─┬─────────────┬─> typebox (*) ─┤ │ └─> 
A

L

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
─┤ └─> ( ─┬─┬─> 
C

O

L

U

M

N

S
──────┬─┬─> ) ─┘ │ └─> 
A

L

L
────┘ │ ├─> 
C

O

M

M

E

N

T
──────┤ │ │ │ ├─> 
C

O

N

S

T

R

A

I

N

T

S
──┤ │ │ │ ├─> 
I

N

D

E

X

E

S
──────┤ │ │ │ ├─> 
S

T

O

R

A

G

E

M

A

P

S
─┤ │ │ │ └─> 
T

R

I

G

G

E

R

S
─────┘ │ │ └───────── , <────────┘ │ ┌──────────────────────────────<───────────────────────────────┘ └──┬─┬───────────>──────────┬─┬──> │ ├─┬─────────────┬─> typebox (*) ─┤ │ │ │ └─> 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. If you do not specify any of the SHOW TABLES options (COLUMNS, COMMENT, CONSTRAINTS, INDEXES, STORAGE MAPS, or TRIGGERS), by default you will see the display for all of these options.

Additional information available:

COLUMNSCOMMENTCONSTRAINTSINDEXESSTORAGE_MAPS
TRIGGERS

COLUMNS

 Displays each column name, data type, and domain name for the
 specified tables.

COMMENT

 Displays the comments for the specified tables.

CONSTRAINTS

 Displays the constraints for the specified tables and the
 constraints referencing the specified tables.  The display shows
 the name and type of each constraint, its evaluation time, and
 its source definition.

INDEXES

 Displays the indexes for the specified tables.  The display
 shows the name and type of each index and whether duplicates are
 allowed.

STORAGE_MAPS

 Displays the names of the storage maps for the specified tables.

TRIGGERS

 Displays the names and source definitions of triggers for the
 specified tables.

triggers

 show-triggers =
 TRIGGERS_─┬─┬───────────>──────────┬─┬──>
           │ ├─┬──────>──────┬─> typebox (*) ─┤ │
           │ │ └─> auth-id. ─┘      │ │
           │ └─> trigger-name ──────┘ │
           └─────────── , <───────────┘
 Displays information about triggers.  If you do not specify a
 wildcard or a trigger name, SQL displays the names of all the
 triggers in all declared schemas.

users granting

 show-users-granting =

 ──> 
U

S

E

R

S

G

R

A

N

T

I

N

G
───┐ ┌────────────────────┘ └─┬─> table-privs-ansi ──┬─> 
O

N
┬─> typebox (T)typebox (A)typebox (B)typebox (L)typebox (E) ─┬─> table-name ─┬─┬──┐ ├─> column-privs-ansi ─┤ │ └─────── , <─────┘ │ │ └─> schema-privs-ansi ─┘ ├─> 
C

O

L

U

M

N
─┬─> column-name ─┬─┤ │ │ └─────── , <─────┘ │ │ └─> 
S

C

H

E

M

A
─┬─> schema-name ─┬─┘ │ └─────── , <─────┘ │ ┌────────────────────────────────────────────────────────────┘ └─┬─> 
T

O
identifier-ansi-style ──┬──> typebox (;) └─> 
P

U

B

L

I

C
────────────────────┘ Displays information about the users who gave a particular privilege to a particular user. This statement displays the privilege records that need to be revoked to take a privilege away from the user, either directly or indirectly. You can specify a list of tables, columns, or schema but you must specify at least one item to display a table, column, or schema list. For lists of privileges, see the column_privs, schema_privs, and table_privs subtopics of the Help topic for GRANT_ANSI_style.

Additional information available:

TO

TO

 Specifies the identifiers for the new or modified access
 privilege set entry.  Specifying PUBLIC is equivalent to using
 the user identification code (UIC) identifier [*,*].

users with

 show-users-with =

 ──> 
U

S

E

R

S

W

I

T

H
───────┐ ┌────────────────────┘ └─┬─> table-privs-ansi ──┬─> 
O

N
┬─> typebox (T)typebox (A)typebox (B)typebox (L)typebox (E) ─┬─> table-name ─┬─┬──┐ ├─> column-privs-ansi ─┤ │ └─────── , <─────┘ │ │ └─> schema-privs-ansi ─┘ ├─> 
C

O

L

U

M

N
─┬─> column-name ─┬─┤ │ │ └─────── , <─────┘ │ │ └─> 
S

C

H

E

M

A
─┬─> schema-name ─┬─┘ │ └─────── , <─────┘ │ ┌────────────────────────────────────────────────────────────┘ └─┬─> 
F

R

O

M
identifier-ansi-style ─┬───> typebox (;) └─> 
P

U

B

L

I

C
─────────────────────┘ Displays information about the users who received a particular privilege from a particular user. This is also the list of users who lose a particular privilege when it is taken away from any users who granted the privilege. You can specify a list of tables, columns, or schema but you must specify at least one item to display a table, column, or schema list. For lists of privileges, see the column_privs, schema_privs, and table_privs subtopics of the Help topic for GRANT_ANSI_style.

Additional information available:

FROM

FROM

 Specifies the identifiers for the new or modified access
 privilege set entry.  Specifying PUBLIC is equivalent to using
 the user identification code (UIC) identifier [*,*].

views

 show-views =
 ──┬─────>─────┬─> 
V

I

E

W

S
─┬───────────────>──────────────┬─┐ ├─> 
S

Y

S

T

E

M
─┤ └─> ( ─┬─┬─> 
C

O

L

U

M

N

S
─┬─┬─> ) ─┘ │ └─> 
A

L

L
────┘ │ ├─> 
C

O

M

M

E

N

T
─┤ │ │ │ └─> 
S

O

U

R

C

E
──┘ │ │ └────── , <──────┘ │ ┌──────────────────────────────<─────────────────────────┘ └──┬─┬────────────>─────────┬─┬──> │ ├─┬──────>──────┬─> typebox (*) ─┤ │ │ │ └─> 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. If you do not specify any of the SHOW VIEWS options (COLUMNS, COMMENT, or SOURCE), by default you will see the display for all of these options.

Additional information available:

COLUMNSCOMMENTSOURCE

COLUMNS

 Displays each column name, data type, and domain name for the
 specified views.

COMMENT

 Displays the comments for the specified views.

SOURCE

 Displays the source definitions for the specified views.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026