HP NonStop SQL/MP Programming Manual page 142

For c
Table of Contents

Advertisement

Explicit Program Compilation
Example 6-1. Sample SQL Compiler Listing (page 2 of 2)
133
134
135
136
*** Statistics: Estimated cost: 1
SQL -
SLT Index
149
150
151
152
(:parts_rec.price,2)
153
*** Statistics: Estimated cost: 2
BINDER - OBJECT FILE BINDER - T9621D30 - (17JUL95)
Copyright Tandem Computers Incorporated 1982-1995
Object file \NEWYORK.$DISK1.SQLPROG.SQLC
TIMESTAMP
1996-10-04 16:34:56
PAGE
1
0
Binder Warnings
0
Binder Errors
PAGE
2
SQL **************************************************
SQL - Summary of SQL Compiling
SQL -
Number of SQL Statements = 6
SQL -
Number of SQL Errors
SQL -
Number of SQL Warnings
SQL -
Number of other Errors
SQL -
Compile Time
SQL -
Elapsed Time
SQL -
Program file is \NEWYORK.$DISK1.SQLPROG.SQLC
SQL -
>>> SQL COMPILATION STORED IN PROGRAM FILE <<<
SQL **************************************************
Using the EXPLAIN Utility
The EXPLAIN utility generates reports about execution plans for each SQL statement.
Use EXPLAIN reports to determine the tables and indexes used by a program and
whether creating other indexes or modifying a query would improve the performance of
the program. The EXPLAIN utility has these report options:
EXPLAIN PLAN Report
EXPLAIN DEFINES Report
HP NonStop SQL/MP Programming Manual for C—429847-008
= 0,
Run-Unit
= do_add_to_parts
= 0
= 0
= 0
= 00:00:00.264
= 00:00:18.096
on page 6-27
on page 6-27
6-26
INSERT INTO =PARTLOC
VALUES (:partloc_rec.loc_code,
:partloc_rec.partnum,
:partloc_rec.qty_on_hand)
INSERT INTO =PARTS
VALUES (:parts_rec.partnum,
:parts_rec.partdesc,
SETSCALE
:parts_rec.qty_available)
SYSTEM \NEWYORK
SQL Compiler Listings
10/04/96 - 16:38:23
10/04/96 - 16:38:23

Advertisement

Table of Contents
loading

Table of Contents