What Does Dynamic Structured Query Language (Dynamic SQL) Mean?Dynamic Structured Query Language (SQL) is a SQL version that facilitates the generation of dynamic (or variable) program queries. Dynamic SQL allows a programmer to write code that automatically adjusts to varying databases, environments, servers or variables.
Dynamic SQL statements are not embedded in the source program but stored as strings of characters that are manipulated during a program's runtime. These SQL statements are either entered by a programmer or automatically generated by the program. This is the major difference between dynamic SQL and static SQL statements. Dynamic SQL statements also may change from one execution to the next without manual intervention.
Dynamic SQL facilitates automatic generation and manipulation of program modules for efficient automated repeating task preparation and performance.