NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
D-49
DISPLAY STATISTICS Command
The following example demonstrates how to use SKIP to print a report vertically
instead of horizontally:
>> SET LIST_COUNT 0;
>> SET STYLE HEADINGS OFF,
>> SET LAYOUT PAGE_LENGTH ALL;
>> SELECT CUSTNAME, STREET, CITY, STATE, POSTCODE
+> FROM SALES.CUSTOMER
+> ORDER BY STATE, POSTCODE;
S> DETAIL PAGE,
+> CUSTNAME, SKIP 1,
+> STREET, SKIP 1,
+> CONCAT (CITY STRIP, ",", STATE STRIP,
+> " ", POSTCODE);
+> LIST NEXT 1;
FRESNO STATE BANK
2300 BROWN BLVD
FRESNO, CALIFORNIA 93921
DISPLAY STATISTICS Command
DISPLAY STATISTICS is an SQLCI command that displays statistics about the last
DML or PREPARE statement you executed.
Considerations—DISPLAY STATISTICS
Automatic display of statistics
You can use DISPLAY STATISTICS at any time to see the statistics of the most
recent DML or PREPARE statement but if you set the STATISTICS option to ON,
SQLCI displays statistics automatically after each DML, DCL, DDL, or PREPARE
statement executes. See SET SESSION Command
on page S-39 for more
information.
Statistics displayed
SQLCI displays the following statistics:
°
Estimated cost
DISPLAY STATISTICS ;