A sample HCL OneDB ESQL/C program

The demo1.ec program illustrates most of the concepts that this section presents, such as include files, identifiers, host variables, and embedded SQL statements. It demonstrates how to use header files, declare and use host variables, and embed SQL statements.
Important: If you are using UNIX™, you can find an online version of this and other demonstration programs in the $ONEDB_HOME/demo/esqlc directory. If you are using Windows™, you can find the demonstration programs in the %ONEDB_HOME%\demo\esqldemo directory.