SQL/MX 2.x Reference Manual (G06.24+, H06.03+)

Contents
HP NonStop SQL/MX Reference Manual523725-004
x
3. Embedded-Only SQL/MX
Statements (continued)
3. Embedded-Only SQL/MX Statements (continued)
DESCRIBE Statement 3-33
C Examples of DESCRIBE 3-34
COBOL Examples of DESCRIBE 3-35
END DECLARE SECTION Declaration 3-37
C Examples of END DECLARE SECTION 3-37
C++ Examples of END DECLARE SECTION 3-37
COBOL Examples of END DECLARE SECTION 3-37
EXEC SQL Directive 3-38
Considerations for EXEC SQL 3-38
Examples of EXEC SQL 3-38
EXECUTE IMMEDIATE Statement 3-39
Considerations for EXECUTE IMMEDIATE 3-39
C Examples of EXECUTE IMMEDIATE 3-39
COBOL Examples of EXECUTE IMMEDIATE 3-39
FETCH Statement 3-40
Considerations for FETCH 3-42
C Examples of FETCH 3-44
COBOL Examples of FETCH 3-45
GET DESCRIPTOR Statement 3-47
SQL Item Descriptor Area of GET DESCRIPTOR 3-49
SQL Descriptor Area Data Type Declarations of GET DESCRIPTOR 3-52
Considerations for GET DESCRIPTOR 3-54
C Examples of GET DESCRIPTOR 3-54
COBOL Examples of GET DESCRIPTOR 3-55
GET DIAGNOSTICS Statement 3-56
Statement Items of GET DIAGNOSTICS 3-58
Condition Items of GET DIAGNOSTICS 3-58
Considerations for GET DIAGNOSTICS 3-60
C Examples of GET DIAGNOSTICS 3-60
COBOL Examples of GET DIAGNOSTICS 3-61
IF Statement 3-62
Considerations for IF Statement 3-63
C Example of IF Statement 3-63
COBOL Example of IF Statement 3-64
INVOKE Directive 3-65
Considerations for INVOKE 3-67
C Examples of INVOKE 3-68
COBOL Examples of INVOKE 3-70