Entering content frame

 Static SQL Statements 

Use dynamic SQL statements particularly if you already know the structures of the database tables during the programming phase, and the embedded SQL statements do not change at runtime of the application program. The C/C++ precompiler checks the syntax of static SQL statements by sending them to the database kernel when you run the precompiler with the precompiler option check.

If the SQL statements or the structures of the database tables change at runtime of the program, use dynamic SQL statements.

You can formulate the following types of static SQL statements:

·        Static SQL statement without parameters

·        Static SQL statement with parameters

 

Leaving content frame