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

How to design maps

1 Answers   Virtusa,


What is the SQL Communications Area and what are some of its key fields?

1 Answers  


Can a primary key have null values? If we try to insert a null value in a primary key column, will it work or give an error code?

6 Answers  


What is db2 purescale?

0 Answers  


What is bind in db2?

0 Answers  


How can we read records for specific member in CL? AND rpg?

0 Answers  


Define check constraint.

0 Answers  


What are data types?

2 Answers  


what are the max. & min. no. of partitions allowed in a partition tablespace?

2 Answers   IBM,


What is a bind card?

0 Answers  


Is the primary key a clustered index?

0 Answers  


What is the cobol picture clause of the db2 data types date, time, timestamp?

0 Answers  


Categories