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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqlca’s maximum length?

792


What is the connection string to connect to the DB2 Database ?

701


What is dpf in db2?

753


What is meant by explain?

742


what is the sqlcode -501

11707






What is database manager in db2?

636


What action db2 takes when a program aborts in the middle of a transaction?

742


Are view updateable?

710


How to resolve deadlock issue

18559


What is a Foreign Key?

744


What is the advantage in De-normalizing tables in DB2?

837


How do you eliminate duplicate values in db2?

795


What is the max length of sqlca?

839


Name the lockable units in DB2?

759


How do I copy a table in db2?

664