what is static sql? what is dynamic sql? Give me details

Answers were Sorted based on User's Feedback



what is static sql? what is dynamic sql? Give me details..

Answer / sathishkumar s

Static SQL is SQL statements in an application that do not
change at runtime and, therefore, can be hard-coded into
the application.

Dynamic SQL is SQL statements that are constructed at
runtime; for example, the application may allow users to
enter their own queries. Thus, the SQL statements cannot be
hard-coded into the application.

Is This Answer Correct ?    11 Yes 0 No

what is static sql? what is dynamic sql? Give me details..

Answer / yuvaevergreen

>>static sql is hard coded in the cobol program. The static
sql is syntax checked,separately processed and executable
format of the sql is made ready by the precompiler even the
before the cobol program is compiled.
>>dynamic sql,though precompiled like static sql but they
are prepared and executed at run time. sql is of string
format and executed by SQL PREPARE or EXECUTE IMMEDIATE
statement.

Is This Answer Correct ?    2 Yes 0 No

what is static sql? what is dynamic sql? Give me details..

Answer / ankitha

static and dynamic sql are the sql statements which are
coded in pgms . in static the execution of sql is known
means which sql statement should execute after any sql
statements but in dynaamic the execution of any sql
statements will happens in run time .it is like chioce

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More DB2 Interview Questions

B37 abend during spufi?

0 Answers   IBM,


Differentiate between cs and rr isolation levels? Where do you specify them?

0 Answers  


what is load and unload in db2

1 Answers   IBM,


what's the error code for Unique Index Violation?

2 Answers  


how to resolve -805 . how to see dbrm and package not found

2 Answers   IBM,


why db2 is called as universal database?what is the storage capacity of db2v9 n what are the advantages of db2

3 Answers  


How do you Load a table ?? and what is Load replace ?

2 Answers   Xansa,


How to resolve -805 error in DB2?

1 Answers   Cap Gemini,


What is DCLGEN ?

2 Answers  


i have cobol+ db2 program but it contains n number of subprograms for this how many dbrm members i need to mention in bind process

2 Answers  


Suppose there are many duplicate records in a Db2 table. What is the query to retrive only duplicate records?

4 Answers  


Explain dclgen.

0 Answers  


Categories