Dynamic SQL

The SQL statement associated with an EGL statement can be specified statically, with every detail in place at generation time. When dynamic SQL is in effect, however, the SQL statement is built at run time, each time that the EGL statement is invoked.

Use of dynamic SQL decreases the speed of run-time processing, but lets you vary a database operation in response to a run-time value:

Related concepts
SQL support

Related reference
Database authorization and table names
prepare
SQL record part in EGL source format