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

Explain about mirror activator disk mirroring?

0 Answers  


Why use RUNSTAT Utility?

3 Answers   Merrill Lynch,


What is auditing?

2 Answers  


What is Call attach facility? How does it work?

1 Answers   Syntel,


How to check table size in db2 sap?

0 Answers  






what is the name of the default db2 catalog database?

3 Answers   IBM,


Where besides the DB2 catalog is database object information stored by DB2?

1 Answers  


how we will do null data selection in cobol-db2 program

2 Answers   Wipro,


in my table i will update only 100 record among 1000 records i need to display recently updated record'.....can u tell me where those records are stored how can i display those records...?if there is any sql query pls let me know....?

3 Answers   Infosys,


Hi Dude,this is Ram.could any one tell me aboue CURRENT OF clause in DB2. Thanks in advance.......

2 Answers  


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

0 Answers  


in a table consist of 1000 records among that i was updated 145 record how could i know that ..list of recently updated record's and where could i see those updated record's....pls help me out....

4 Answers   Infosys,


Categories