SQL statements may also be embedded within programming language text. SQL statements and associated variable declarations in the host language text are enclosed within ``EXEC SQL'' and ``;.'' These embedded SQL statements and associated declarations are preprocessed into suitable programming language syntax often consisting of procedure calls. The preprocessed source text then becomes input to the programming language compiler or interpreter.
Figure 8.1: SQL on a standalone system.