Entering content frame

EXISTS TABLE statement 

An EXISTS TABLE statement indicates whether a table exists or not.

Syntax

<exists_table_statement> ::= EXISTS TABLE <table_name>

table_name

Explanation

The specified table must be a base table, view table, or a synonym.

The existence or non-existence of the specified table is indicated by the return code 0 or by the error message -4004 UNKNOWN TABLE NAME .

A table only exists for a user if the user has a privilege on this table.

Leaving content frame