Explain the following:

a. Why do embedded SQL and SQLJ use host language variables as parameters, whereas dynamic SQL, JDBC, and ODBC use the ? placeholders?
b. What are the advantages of using host language variables as parameters in embedded SQL compared with ? placeholders?


a. With embedded SQL, the precompiler and compiler generate code for fetching and storing arguments between host language variables and SQL statements. Since the SQL statement is not known at compile time for dynamic SQL, JDBC, and ODBC, the compiler cannot generate that code and placeholders must be used.
b. Syntax checking can be done at compile time, and less communication is required at run time.

Computer Science & Information Technology

You might also like to view...

Which of the following is not one of the four values of the agile approach?

A) communication B) expertise C) simplicity D) courage

Computer Science & Information Technology

What is the origin and structure of the Internet?  Include some of the services it provides and the protocols they use.

What will be an ideal response?

Computer Science & Information Technology

A(n) ________ is a defined set of colors, fonts, and graphics that can enhance the appearance of the a form or report by giving a uniform appearance

Fill in the blank(s) with correct word

Computer Science & Information Technology

What are the key differences between adjusting images in Expert mode, Quick edit

mode and Guided edit mode? What will be an ideal response?

Computer Science & Information Technology