Dynamic SQL in CA Datacom/DB is compatible with IBM DB2's dynamic SQL. Application programs that have been using DB2's dynamic SQL can precompile successfully and execute equivalently under the DB2 mode of CA Datacom/DB.
Five statements in CA Datacom/DB support dynamic SQL:
For syntax compatibility with other SQL implementations, the DECLARE STATEMENT is accepted by the CA Datacom/DB Preprocessor for SQL, but CA Datacom/DB ignores everything after the keyword STATEMENT up to the end-of-statement delimiter. CA Datacom/DB functionality is not affected.
This statement obtains information about a specified table or view, or about a statement that has been prepared for execution by the PREPARE statement.
This statement executes an SQL statement that has previously been prepared for execution by the PREPARE statement.
This statement prepares an executable form of an SQL statement from a character string form, executes the SQL statement, and then destroys the executable form.
This statement creates an executable SQL statement from a character string form of the statement. The executable form is called a prepared statement.
Three other CA Datacom/DB SQL statements also support dynamic SQL:
|
Copyright © 2014 CA.
All rights reserved.
|
|