HPlogo ALLBASE/SQL Pascal Application Programming Guide: HP 9000 Computer Systems

Chapter 10 Using Dynamic Operations

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Table of Contents

Review of Preprocessing Events
Differences between Dynamic and Non-Dynamic Preprocessing
Permanently Stored vs. Temporary Sections
Examples of Non-Dynamic and Dynamic SQL Statements
Why Use Dynamic Preprocessing?
Passing Dynamic Commands to ALLBASE/SQL
Understanding the Types of Dynamic Operations
Preprocessing of Dynamic Non-Queries
Using EXECUTE IMMEDIATE
Using PREPARE and EXECUTE
Preprocessing of Dynamic Queries
Dynamically Updating and Deleting Data
Setting Up the SQLDA
Setting Up the Format Array
Setting up the Data Buffer
Using the Dynamic Query Data Structures
Parsing the Data Buffer
Preprocessing Dynamic Commands That May or May Not Be Queries
Programs Using Dynamic Command Operations
pasex10a: Program Using Dynamic Commands of Unknown Type
pasex10b: Program Using Dynamic Queries of Known Format

Dynamic operations are used to execute SQL commands that are not preprocessed until run time. Such commands, known as dynamic SQL commands, are submitted to ALLBASE/SQL through several special SQL statements: PREPARE, DESCRIBE, EXECUTE, and EXECUTE IMMEDIATE.

This chapter contrasts dynamic with non-dynamic operations and introduces the techniques used to handle dynamic operations from a program. It then focuses on dynamic non-queries and queries. The following topics are considered:

  • Review of Preprocessing Events.

  • Differences between Dynamic and Non-Dynamic Preprocessing.

  • Preprocessing of Dynamic Non-Queries.

  • Preprocessing of Dynamic Queries.

  • Preprocessing of Dynamic Commands That May or May Not be Queries.

  • Programs Using Dynamic Command Operations.

Feedback to webmaster