Advanced PowerBuilder

HomePrevious Lesson: Retrieving the Value Of OUTPUT Variable
Next Lesson: Dynamic Staging Area

Dynamic SQL

Dynamic SQL consists of a set of embedded SQL facilities, that are specially provided for the construction of a generalized, on-line (and possibly interactive) applications. PowerBuilder doesn't support certain SQL statements, either through DataWindow or embedded SQL. These include:

You can get around these using dynamic SQL. Since PowerBuilder doesn't check for SQL syntax errors at compile time, it is up to the database to take care of it.

We can broadly divide dynamic SQL statements into 4 categories:

You need to use different formats in order to execute each of these statements. Dynamic SQL introduces two new terms, dynamic Staging Area and dynamic Description Area.
HomePrevious Lesson: Retrieving the Value Of OUTPUT Variable
Next Lesson: Dynamic Staging Area