CS348 Lecture Notes - Lecture 6: Database, Embedded Sql, Compile Time

36 views2 pages

Document Summary

In order to execute a string as a sql statement we need an application that accepts an sql statement as an argument and executes it (printing out any answers) The more you know at compile time, the more readable! The following is a roadmap of dynamic sql (where the sqlda is a runtime data structure that communicates type information between the pl and sql: execution of non-parametric statements without answers: exec sql execute immediate. :string; where :string is a host variable containing the ascii representation of the query. :string may not return an answer nor contain parameters and is compiled every time we pass through: used for constant statements executed only once. Use exec sql execute stmt using :var1 [, , Use a dynamic descriptor area (explicitly sqlda in practice: allocate descriptor descr. Selena latchman: get/set descriptor descr what (where what is the value for count or for the i-th attribute value :i assgn, describe [input|output] stmt into descr.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents