Get catalog information about a table

The SYSTABLES view contains a row for every table and view in the SQL schema. It tells you if the object is a table or view, the object name, the owner of the object, what SQL schema it is in, and so forth.

The following sample statement displays information for the CORPDATA.DEPARTMENT table:

  SELECT *
    FROM CORPDATA.SYSTABLES
    WHERE TABLE_NAME = 'DEPARTMENT'