Application Development Guide


Embedding SQL Statements in FORTRAN

Embedded SQL statements consist of the following three elements:

Element
Correct FORTRAN Syntax

Keyword
EXEC SQL

Statement string
Any valid SQL statement with blanks as delimiters

Statement terminator
End of source line.

The end of the source line serves as the statement terminator. If the line is continued, the statement terminator is the end of the last continued line.

For example:

   EXEC SQL SELECT COL INTO :hostvar FROM TABLE 

The following rules apply to embedded SQL statements:


[ Top of Page | Previous Page | Next Page ]