
26 OnDemand SQL Performance Analysis Simplified on DB2 for i5/OS in V5R4
new indexes, the access plan is updated in the program object. In this way, a program
object can grow over time, even if no modifications are performed.
Dynamic SQL
Dynamic SQL statements are prepared at the time an SQL application is executed. The
SQL statements are passed to the database manager in the form of a character string.
This string uses interfaces with the PREPARE and EXECUTE statements or an
EXECUTE IMMEDIATE type of statement.
Programs that contain embedded dynamic SQL statements must be precompiled like
those that contain static SQL. Unlike static SQL, the ...