Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   SQL Statements >

INFO

Use the INFO statement to display information about databases tables.

This statement is an extension to the ANSI/ISO standard for SQL. You can use this statement only with DB–Access.

Syntax

Read syntax diagramSkip visual syntax diagram>>-INFO--+-TABLES-------------------------+--------------------><
         '-+-+-COLUMNS-+----+--FOR--table-'
           | +-INDEXES-+    |
           | '-STATUS--'    |
           +-+-PRIVILEGES-+-+
           | '-ACCESS-----' |
           '-+-FRAGMENTS--+-'
             '-REFERENCES-'
 

Element Description Restrictions Syntax
table Table about which you seek information Must exist Database Object Name

Usage

You can use the INFO statement with DB–Access to display information about database tables. C-style comments are not valid within the INFO statement.

Keywords of the INFO statement can display the following information.

INFO Keyword
Information Displayed
TABLES
Table names in the current database
COLUMNS
Column information for a specified table
INDEXES
Index information for a specified table
FRAGMENTS
Fragmentation strategy for a specified table
ACCESS or PRIVILEGES
Access privileges for a specified table. (The ACCESS and PRIVILEGES keywords are synonyms in this context.)
REFERENCES
References privileges for columns of a specified table
STATUS
Status information for a specified table

An alternative to using the INFO statement of SQL is to use the Info command of the SQL menu or of the Table menu of DB–Access to display the same and additional information.

Related Information

Related statements: GRANT and REVOKE

For a description of the Info option on the SQL menu or the TABLE menu in DB–Access, see the IBM Informix DB–Access User's Guide.

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]