Advanced SQL
Advanced SQL
system
Unit – 1 RELATIONAL DATABASES
• The terms EXEC SQL and END_EXEC must be used before and after each SQL statement in the source
code file. In embedded SQL, host variables play a key role. These variables serve as an intermediary for
data transfer between the application and the database.
• There are two different kinds of host variables: input host variables that provide data to the database
and output host variables that receive that data.
• Example
• This example shows the embedded code written in C++, retrieving the customer id, and name from the
database