Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between static and dynamic SQL?

Answer Posted / jkb

In Stats SQL, the statement is prepared before the program
is executed and the operational form of the statement
persists beyond the execution of the program. A source
program containing static SQL statements must be processed
by an SQL precompiler before it is compiled. The
precompiler checks the syntax of the SQL statements, turns
them into host language comments, and generates host
language statements to invoke DB2.


A dynamic SQL statement is prepared during the execution of
an SQL application, and the operational form of the
statement is not persistent. The source form of the
statement is a character string passed to DB2 by an
application program using the static SQL statement PREPARE
or EXECUTE IMMEDIATE.

Is This Answer Correct ?    52 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the role of the cursor in db2?

1067


What do you mean by commit and rollback?

1040


What is the difference between cursor stability and repeatable read isolation levels?

1173


What is sqlca?

1073


Highlight all the advantages that are attached to a package.

1119


What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

1270


What is dbrm library?

1054


What is a db2 collection?

1040


What is null in db2?

1024


What is db2 connect?

1068


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

1194


How can the duplicate values be eliminated from db2 select?

1106


Outputs of explain are with matchcols = 0. What does this signify?

1057


Explain the function done by data manager?

1280


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

700