March 2000
Beginner
464 pages
9h 17m
English
The system catalog tables or views are queried as any other table or view in the database using SQL. A user can usually query the user-related tables, but may be denied access to various system tables that can be accessed only by privileged database user accounts, such as the database administrator.
You create an SQL query to retrieve data from the system catalog just as you create a query to access any other table in the database.
For example, the following query returns all rows of data from the Sybase table SYSTABLES:
SELECT * FROM SYSTABLES GO
The following section displays a few examples of querying system catalog tables and some of the information that you may stumble across.
Read now
Unlock full access