What is the difference between static and dynamic SQL?
Answer Posted / jkb
In Stats SQL, the statement is prepared before the program
is executed and the operational form of the statement
persists beyond the execution of the program. A source
program containing static SQL statements must be processed
by an SQL precompiler before it is compiled. The
precompiler checks the syntax of the SQL statements, turns
them into host language comments, and generates host
language statements to invoke DB2.
A dynamic SQL statement is prepared during the execution of
an SQL application, and the operational form of the
statement is not persistent. The source form of the
statement is a character string passed to DB2 by an
application program using the static SQL statement PREPARE
or EXECUTE IMMEDIATE.
| Is This Answer Correct ? | 52 Yes | 9 No |
Post New Answer View All Answers
If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2
What is a page in db2?
Which component is responsible for db2 startup and shutdown?
What is declare cursor?
Mention some fields that are a part of sqlca.
What is the role of data manager in the db2 database?
How to find schema of a table in db2?
What is db2 connect?
Explain about rct in db2?
List some fields from sqlca?
What is a db2 cursor?
What is lock escalation in db2?
define clustering index.
What is db2 plan table?
Define db2 and its databases?