Execute SQL Command

Execute SQL Command performs a SQL statement that is stored in a memory variable.

Because the SQL statement is stored in a memory variable, it can be constructed dynamically, based on results obtained while reading the data. For example, an SQL statement (such as select, insert, or update) can be assigned to the memory variable initially and SQL clauses (such as where or order by) can be added based on conditional logic applied to the data. The advantages of this command are the potential of eliminating the need for unnecessary nested condition testing and the ability to dynamically construct SQL statements based on data conditions (such as information passed from a Web browser to the server).

Variables