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

Q3. How will you fetch duplicate values from a DB2 table?

2 Answers   RBS,


Can All Users Have The Privilege To Use The SQL Statement Select (DML)?

1 Answers  


Is it possible to update a primary key value? If not, what is the error code given? If yes, can more than 1 primary key column be updated at a time?

8 Answers  


can we view the access paths created by dbrm ? how ? thx

2 Answers   IBM,


What is a storage group (stogroup)?

0 Answers  






What are the disadvantages of using VARCHAR?

3 Answers  


What is a PLAN table? How will you use it? Give the various fields of PLAN table?

1 Answers   Accenture,


What is the clustering index in the db2 database?

0 Answers  


List out the three types of page locks that can be held.

0 Answers  


AGGREGATE function support by DB2. A) SUM & AVG B) SUM, MIN & AVG C) SUM, MAX, AVG , MIN &COUNT D) NONE

2 Answers   Accenture,


how can you access index

4 Answers   IBM, Tech Mahindra,


What will happen, while trying to close the closed cursor.

1 Answers  


Categories