HPlogo ALLBASE/SQL Reference Manual: HP 9000 Computer Systems > Chapter 1 Introduction

SQL Statement Categories

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Writing queries is the basis of data manipulation in ALLBASE/SQL. All users employ the SELECT statement for this purpose. SQL has several other general-purpose statements, and also has statements specifically for use by application programmers or database administrators. The SQL statements are functionally summarized inTable 1-1 “SQL Statement Categories” For the commands in each category, refer to Table 10-1 “SQL Statement Summary”

Table 1-1 SQL Statement Categories

GroupCategoryPurpose
General-purpose statementsDBEnvironment session managementStatements for obtaining and terminating database access.
 Data definitionStatements for defining tables, views, indexes, DBEFiles, DBEFileSets, TempSpace, and other SQL objects.
 Data manipulationStatements for selecting, inserting, and changing rows.
 Transaction managementStatements for committing or rolling back work done within a single transaction. A transaction is a unit of work and may consist of one or multiple SQL statements.
 ConcurrencyStatements for managing data contention in multiuser mode.
 Module MaintenanceStatements for managing modules and procedures.
Application programming statementsSingle row data manipulationStatements for manipulating a single row with each statement execution.
 Bulk data manipulationStatements for manipulating multiple rows with a single statement execution.
 Cursor managementStatements for manipulating individual rows in a set of rows that satisfy a SELECT statement.
 Preprocessor directivesStatements for declarations in application programming.
 Dynamically preprocessed queriesStatements for handling statements preprocessed at run time.
 Status messagesA statement for retrieving an ALLBASE/SQL message describing the status of an SQL statement execution.
Database administration statementsAuthorizationStatements for controlling DBEnvironment access.
 DBEnvironment configuration and useStatements for controlling DBEnvironments.
 Space managementStatements for managing DBEFiles used for tables and indexes; statements for managing temporary space for sorting.
 LoggingStatements for managing log files.
 DBEnvironment statistics managementStatements related to the system catalog.
 Procedure control flow statementsStatements used only inside procedures.
Procedure statementsGeneral and Control Flow StatementsStatements used only inside procedures.

 

If you are embedding SQL statements in an application program, refer to the ALLBASE/SQL application programming guide for the language you are using. Bulk data manipulation is not available for FORTRAN. COBOL and FORTRAN do not provide the full set of dynamic preprocessing statements.

Feedback to webmaster