What is the difference between static and dynamic SQL?
Answer / 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 |
What is alias in db2?
i have table agdet i want first 5 maximum commission which query will you write for this thanks in advance
Which isolation level provides maximum concurrency?
What is catalog database in db2?
before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?
I want to fetch the 10th row of a table which has been changed.How can I do it without going thru all the rows.
What do the initials DDL and DML stand for and what is their meaning?
PLAN IS EXECUTABLE AND PACKAGE IS NOT EXECUTABLE . THEN WHAT IS THE USE OF PACKAGE?
2 Answers Tech Mahindra, Wipro,
How many sub queries can you combine together ?
why we go for SPUFI for creating tables or for sql queries?
How do you prepare a COBOL + DB2 program from coading till execution ?
In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?