ALLBASE/SQL Reference Manual
> Chapter 11 SQL Statements E - REXECUTE IMMEDIATE |
||||||||||||||||||||||||
|
ScopeISQL or Application Programs SQL SyntaxEXECUTE IMMEDIATE {'String' :HostVariable} Parameters
Description
AuthorizationYou can use EXECUTE IMMEDIATE if your authorization permits you to issue the statement to be executed. ExampleIf you know that the statement to be dynamically preprocessed is neither a SELECT statement nor an EXECUTE PROCEDURE statement with results, and has neither input nor output dynamic parameters, you can prepare it and execute it in one step. EXECUTE IMMEDIATE :Dynam1In other instances, it is more appropriate to prepare and execute the statement in separate operations.
|