HPlogo ALLBASE/SQL C Application Programming Guide: HP 3000 MPE/iX Computer Systems

Chapter 8 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 of Commands That May or May Not Be Queries
Sample Programs Using Dynamic Query Operations
cex10a: Program for Dynamic Commands of Unknown Format
cex10b: Program Using Dynamic Commands 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 Query Operations.

Feedback to webmaster