Designing C and C++ routines
Designing C and C++ routines is a task that should precede creating C and C++ routines. Designing C and C++ routines is generally related to both designing external routines implemented in other programming languages and designing embedded SQL applications.
Before you begin
- General knowledge of external routines
- C or C++ programming experience
- Optional: Knowledge of and experience with embedded SQL or CLI application development (if the routine will execute SQL statements)
For more information on the features and
uses of external routines:
- Refer to the topic External routine implementation.
For more information on the characteristics of the embedded
SQL API:
- Refer to the topic, Introduction to embedded SQL
About this task
Procedure
- Include file required for C and C++ routine development (sqludf.h)
- Parameters in C and C++ routines
- Parameter style SQL C and C++ procedures
- Parameter style SQL C and C++ functions
- SQL data type handling in C and C++ routines
- Graphic host variables in C and C++ routines
- Returning result sets from C and C++ procedures
- C++ type decoration
- Restrictions on external routines