sp_iqtable Procedure

Displays information about tables in the database.

Syntax1

sp_iqtable ( [ table_name ],[table_owner ],[table_type ] )

Syntax2

sp_iqtable [table_name='tablename'],
[table_owner='tableowner' ],[table_type='tabletype' ]

Privileges

No specific system privileges are required to run the procedure.

Usage: Syntax1

If you do not specify either of the first two parameters, but specify the next parameter in the sequence, you must substitute NULL for the omitted parameters. For example, sp_iqtable NULL,NULL,TEMP and sp_iqtable NULL,dbo,SYSTEM.

Note: The table_type values ALL and VIEW must be enclosed in single quotes in Syntax1.

Usage: Syntax2

The parameters can be specified in any order. Enclose them in single quotes.

The allowed values for the table_type parameter:

table_type value

Information displayed

TEMP

Global temporary tables

VIEW

Views

ALL

IQ tables, global temporary tables, and views

any other value

IQ tables

Description

Specifying one parameter returns only the tables that match that parameter. Specifying more than one parameter filters the results by all of the parameters specified. Specifying no parameters returns all SAP Sybase IQ tables in the database. There is no method for returning the names of local temporary tables.

Column name

Description

table_name

The name of the table.

table_type

BASE – a base table.

MAT VIEW - a materialized view. (SA tables only)

GBL TEMP - a global temporary table.

PARTITION - a table partition (this table is for internal use only and cannot be used by SAP Sybase IQ users).

VIEW – a view.

table_owner

The owner of the table

server_type

IQ – an object created in the IQ store.

SA – an object created in the SA store.

All views are created in the SA store.

location

TEMP – IQ temporary store.

MAIN – IQ store.

SYSTEM – catalog store.

dbspace_id

Number that identifies the dbspace.

isPartitioned

'Y' if the column belongs to a partitioned table and has one or more partitions whose dbspace is different from the table partition’s dbspace, 'N' if the column’s table is not partitioned or each partition of the column resides in the same dbspace as the table partition.

remarks

User comments added with the COMMENT statement.

table_constraints

Constraints against the table.

isRLV

Indicates if the table is RLV-enabled.

Related reference
sp_iqcolumn Procedure
sp_iqconstraint Procedure
sp_iqdatatype Procedure
sp_iqevent Procedure
sp_iqhelp Procedure
sp_iqindex and sp_iqindex_alt Procedures
sp_iqpkeys Procedure
sp_iqprocparm Procedure
sp_iq_reset_identity Procedure
sp_iqview Procedure