![]() |
![]() |
Up and Running with ALLBASE/SQL: HP 3000 and HP 9000 Computer Systems > Chapter 3 Setting Up a Database with ISQL![]() Examining the System Catalog |
|
Whenever you create objects in ALLBASE/SQL, their characteristics are stored in the system catalog, which is a special system-created database. The system catalog is like a listing of the contents of a DBEnvironment. (See the illustration below.) ![]()
You can look at the system catalog by performing queries on system tables. Issue the following query to see entries for the tables and views you have just created:
The next figure shows the first display you see. Figure 3-2 System.Table Display
Enter "r" to scroll right to see all the columns. A complete description of each column appears in chapter 9 of the ALLBASE/SQL Database Administration Guide. For now, notice the value in the TYPE column. A zero (0) indicates a table, a one (1) indicates a view. Use the UPDATE STATISTICS statement for each table as follows:
This ensures that the current number of rows in each table and other statistical information are updated in the system catalog. The statistical information is used by SQLCore when it decides whether to use an index or not. Statistics also provide information about ongoing processes within the DBEnvironment. |