15.10 - Dynamic Statement Example - Preprocessor2 for Embedded SQL

Teradata Preprocessor2 for Embedded SQL Programmer Guide

prodname
Preprocessor2 for Embedded SQL
vrm_release
15.10
category
Programming Reference
featnum
B035-2446-035K

The EMPLOYEE table shown in Appendix C: “Embedded SQL Examples.” illustrates dynamic statements. It is a sample C program that selects multiple rows from a table called EMPLOYEE, inserts a row into that table, then deletes the row just inserted. This procedure is performed using the three dynamic mechanisms which are available.

The program uses directly coded SQL statements, but could also read the statements from a terminal, from a file, or by some other method.