DB2CI sample program
This appendix provides a sample DB2CI program.
shows a simplified program that uses Oracle Call Interface (OCI) functions to read data from the ORG table in the DB2 SAMPLE database. It illustrates some of the common OCI calls. This example uses utility functions that are defined in utilci.c
, and utilci.h
that are part of the DB2CI samples provided with DB2 10.
Example: D-1 DB2CI table read example
#include <stdio.h> ...