| United States-English |
|
|
|
![]() |
ALLBASE/SQL COBOL Application Programming Guide: HP 9000 Computer Systems > Chapter 6 Overview Of Data ManipulationBULK Table Processing |
|
BULK table processing offers a way to retrieve or insert multiple rows with the execution of a single SQL command. Three commands can be used in this fashion:
In each of these three commands, the host variables that hold rows are in an array, as illustrated in the following example. The example shows how you can use a cursor to retrieve and display ten rows at a time from the active set. The host variable named STARTINDEX is set to 1 so that the first row in each group of rows fetched is stored in the first element of the PARTSTABLE array. The host variable named NUMBEROFROWS controls the maximum number of rows returned with each execution of the BULK FETCH command. STARTINDEX and NUMBEROFROWS are set in the paragraph named DISPLAY-TABLE.
BULK table processing is discussed in additional detail in the chapter, "Bulk Table Processing." |
||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||